We have purchased the SonarCloud license initially for 100K lines. Currently we have utilized ~52K LOCs. We trigger our scans via Jenkins. We would like to implement the below to make sure that we do not cross the available LOC limit during the scan.
In short - requirement is
- New project/branch is added
- If the available LOC’s is less then a pre-defined threshold - say 10K - then an alert should be sent to the owner - and the scan should be aborted.
We can also set a nightly job - where if the available LOC’s is less then set threshold - automatic alert should be triggered.