Hey i’m getting successfully the report but i get 0 lines of code on the count…
We have it with a gitlab pipeline and it works but we dont get any count of the lines although the file is indexed, it’s not a test file and it looks to do the analysis of the code…
Hi,
Welcome to the community!
Can you provide your analysis log?
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.
This guide will help you find them.
Also, what languages do you use in your project?
Thx,
Ann
Hi Ann, thanks for your help,
i solved the problem, we had to change the config of the specific project to detect the extension .yaml,
we’re getting the same problem but now sonar do the analysis, but the count of lines is still zero, i think that the problem is going on with the parser. I drop the relevant log in here:
07:53:40.741 INFO: Sensor OpenAPI Scanner Sensor [openapicustom]
[318]07:53:40.770 INFO: OpenAPI Scanner called for the following files: [api-profiler.yaml].
[319]07:53:40.836 DEBUG: ‘api-profiler.yaml’ generated metadata with charset ‘UTF-8’
[320]07:53:40.942 ERROR: Unable to parse file: api-profiler.yaml"
[321]Lexer error: Unable to lex string source code "openapi: 3.0.0
Hi,
Please provide the full analysis log.
Thx,
Ann