Changes in number of excluded files

Must-share information (formatted with Markdown):

    • Enterprise Edition v9.9.8 (build 100196)

We are seeing a difference of covered lines from day to day on our project. Example on March 22 we had 78K uncovered lines, on March 24th we had 82K, and this keeps fluctuating. Our total number of lines does not change by much , maybe 1-200/day. We didn’t do any changes on our analysis in the past month, we are running the same yml file.
When I look at the logs for the scanner I can see for March 22 “98532 non excluded files in this Git repository”, while for March 24h “98586 non excluded files in this Git repository”.
If I search for “excluded for” in the logs I get the same number of hits in both logs, 692. How can I see which files were excluded and why?

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

9.9.8 → 2025.1.1-> 2025.2 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, a debug log (-Dsonar.verbose=true) on the command line will give you more information, but I don’t think it gives you a full enumeration of the excluded files.

Your best starting point is to look at the reasons files were excluded. You’ll find log lines, even at INFO level about how many were excluded due to exclusion patterns and how many due to SCM exclusions (your .gitignore file.)

 
HTH,
Ann

We are working on upgrading to next version.

Looking at both logs I can see:
8014 files indexed
233 files ignored because of inclusion/exclusion patterns
0 files ignored because of scm ignore settings

But I do see changes in these lines:

98586 non excluded files in this Git repository

DEBUG: The total number of file count statistics is ‘6097’.
INFO: Coverage Report Statistics: 6097 files, 4278 main files, 4278 main files with coverage, 1819 test files, 0 project excluded files, 0 other language files.

98532 non excluded files in this Git repository

DEBUG: The total number of file count statistics is ‘6079’.
INFO: Coverage Report Statistics: 6079 files, 4276 main files, 4276 main files with coverage, 1803 test files, 0 project excluded files, 0 other language files.