Exceeded the server wide LOC licensing limits

Hi,

We use SonarQube enterprise edition, when we do the offline scans by downloading sonar-scanner plugin and running it from the code installation directory, it considers all the 3rd party libraries for the scan, and the scan gets failed as the server-wide LoC limits exceeds.

SonarQube should not scan 3rd party libraries and should not consume the license for 3rd party libraries even if they are part of the source code package. Do we need to manually remove all the 3rd party open source libraries from the directory before doing the scan?

Any support is much appreciated.

Thanks

Hey there.

You’ll want to Narrow the Focus to exclude third-party libraries.

1 Like

Hi Colin, That helps. Thank you