Pricing with exclusion patterns

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps) - Azure DevOps
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI) - Azure DevOps
  • Languages of the repository - C#


I have a simple question about SonarCloud pricing regarding file exclusion patterns.

We are using SonarCloud in Azure Pipelines to analyze our soulution and it’s working as expected.

Due to the nature of our deployment infrastructure it proved easiest to have some css and js files in our repository. We’ve set up file exclusion patterns so that SonarCloud doesn’t analyze these files but we’re not sure how SonarCloud calculates LoC for pricing thresholds.

Are the excluded files and their LoCs calculated along with the non excluded files or are their LoCs ingored for this purpose?

Moma Aleksov

Excluded files are ignored!

Just these lines, on the largest branch of your projects, are counted.