- SonarQube version: 9.5
- SonarScanner: Dotnet-sonarscanner.5.7.2
When a relatively long method becomes longer as part of a PR in such a way that it exceeds the maximum length set-up for that rule, it doesn’t trigger S138. It only treats the extra lines as “new code”. Only after merging the PR to the target branch, it’ll pop-up. Is this by design? FYI, when I also touch the method signature, it suddenly pops up in the PR as well.