No issues for non compliant code on SonarCloud

SonarCloud is setup to use on bitbucket for PRs. But currently, when commiting code, which is non compliant with Sonar rules, PR analysis does not show any issue.
Here is an example, for the Rule: An open curly brace should be located at the end of a line.
When I commit PR with code like this :


still get no issue.
Any idea?


Welcome to the community!

To be clear, were all the lines in your example added/edited in the PR? PR analysis only shows issues on code changed in the PR.

If it is the case that all the lines are “new” (added or edited in the PR) then this is a question of the detection of new code. To dig into that, we’ll need 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.


Yes the question was for changed code!
I will check the logs, and in case of questions, will let you know.

Thanks a lot!