Sonarqube 7.9.1 Enterprise Edition.
GitHub Enterprise 2.20.5
We are using SonarQube PR decoration with GitHub Enterprise and noticed Pull Request Analysis on Sonarqube for COBOL files did not detect this rule “The number of COPY directives in a program should be limited”.
- Created a new Cobol file
- Submitted Pull Request on GitHub to merge feature to develop branch (this is our long running
protected server branch).
- PR Analysis issues reported were different from the SQ scan after the Pull request was merged to
target branch. We expected the same number of issues after the PR merge.
Is there a reason why this rule was not detected ?
PR for feature to develop branch on a new file reported about 258 issues.
After feature to develop branch was merged the SQ scan reported additional issues for the same file.
We observed the new issue was for the rule “ **“The number of COPY directives in a program should be limited".
Do you know why this issue was not reported during PR Analysis scan and it appeared in the scan after the merge? Are there any rules which does not get reported at the PR Analysis scan ?
SQ Scan Image below for PR Analysis shows 258 issues.
SQ Scan after the feature branch merge for the same file. It shows one additional issue for this rule“ The number of COPY directives in a program should be limited" Not sure why this issue was Not reported in PR analysis scan.
However, Sonarlint was able to list all of these issues