Sonar Pull Request Analysis scan for COBOL files does not show findings for the rule “The number of COPY directives in a program should be limited"

Sonarqube 7.9.1 Enterprise Edition.
Sonar-Cobol-plugin 4.4.0.3403
GitHub Enterprise 2.20.5
SonarLint 7.9.1

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”.

Scenario

  1. Created a new Cobol file
  2. Submitted Pull Request on GitHub to merge feature to develop branch (this is our long running
    protected server branch).
  3. 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.

image

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

image

You’re right.
I created SONARCOBOL-1570 to track this issue.

Thank you