Connected to SonarCloud or SonarQube (and which version): SonarQube Enterprise Edition
Version 9.9 (build 65466)
And a thorough description of the problem / question:
We have an compile_commands.json with some phony targets that we need for our setup ( The Ninja build system ) this confuses SonarLint to not do any analysis.
If we remove the phony targets then its working ok but we would like to not do that as it makes things needlessly complicated, needing a special compile_commands.json just for SonarLint. Problem seems to be with empty command lines like this “command”: “”, in compile_commands.json
thank you for your report, I created a ticket to ignore those entries: CPP-4779.
While waiting for the fix you should modify the JSON to drop those entries or by providing a non-empty command, you could find and replace in the file "command": "", with something like "command": "true", .