How to ignore a few messages (temporarily)?

We have a product which has come to us through acquisition. Some of the modules are not considered to live release now and hence disabled. However since that code is present in the project SonarQube is trying to check those and failing the QualityGate.

Is there a way to temporarily ignore those modules (something similar to .gitignore skips certain files)?

you can use file exclusion in project setting->general setting ->analysis scope-> Coverage Exclusions **/yourfileName. If you want that file to be included later on you can just delete the file exclusion

1 Like