- which versions are you using (SonarQube 22.214.171.124929)
- what are you trying to achieve: Keeping my lines of code scanned under the license total of 1,000,000
- what have you tried so far to achieve this: Not sure where to start. Can anyone share an arching strategy or a way to clean up scans?
Keeping Lines of Code under the license total - is there a recommended archiving solution or cleaning up?
Thanks for reaching out to the community. We have some documentation on housekeeping. It’s mostly related to database space, but I still think it’s worth a read.
When it comes to managing LOC in particular, it’s important to only scan code that is relevant. You can do this by narrowing your focus with exclusion and inclusion filters. Libraries and generated code, for instance, are examples of code you’ll want to avoid analyzing, as they add un-neccesary license usage. Also, Only code from the latest scan for each project is applied to the license, so you don’t need to worry about old scans taking up LOC count on your license.
Let me know if you have any questions about that info. I’d be happy to help.