No issues for non compliant code on SonarCloud

Hi,
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 :

if(condition)
{
doSomething();
},  

still get no issue.
Any idea?
Thanks!

Hi,

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.

 
Ann

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

Thanks a lot!
Astghik