Sonarcloud stopped scanning all fiiles from source location

Sonarcloud stopped showing all files from source location since last 3-4 days, from source location its showing only 1 or 2 files and i am not using any exclusion in sonar’s Properties files

Hi,

Welcome to the community!

It’s not clear to me what you mean by “stopped showing all files from source location”. Are you saying that when analysis runs, it now finds 0 source files? Could you provide a screenshot of your project’s size measures? E.G.:

And could you also provide an 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 Ann,

Thanks for response.

I have attached 2 branch screen shot for same repository. Earlier this was showing all files but now its showing only 1 files in code section, I am using sonar.sources=./service which is having 6 files and I am not using exclusions in sonar-properties file.

Please refer logs and screen shot for better understaning.

I am using paid account.
pipelineLog-{d5eb5321-3585-4803-a3df-d405c77e41c5}.txt (15.7 KB)

Please refer pipeline file

And sonar-properties I am using below details

sonar.organization=*********
sonar.projectKey=*********
sonar.sources=./service
sonar.java.binaries=.
sonar.typescript.lcov.reportPaths=./coverage/lcov.info
sonar.ts.tslintconfigpath=package.json

Hi,

I see this in the log:

INFO: SCM Publisher 1 source file to be analyzed

Is this a pull request or short-lived branch?

 
Ann

This is pull request, in code section its only 1file just because of this code coverage is also showing 1file for this branch.

Hi,

For pull requests we only analyze the code / files that were changed. So its entirely normal to only see one file if only one file was changed.

 
HTH,
Ann