How to exclude specific python test

I linked my ado with sonar qube but the checks are returnning tag command in databricks like an error, how to exclude this one please explain me step by step because I’m new

example

Hi,

I don’t understand this part:

At a guess, analysis is finding issues in your code (as show in your screenshots) and that results in a failed Quality Gate, that’s blocking your ADO pipeline…?

Have you tried following the directions in the issue messages? E.G. remove the commented-out code? For ones that don’t actually mark commented-out code, you could mark the issue False Positive.

 
HTH,
Ann

OK but I have to do this issue by issue, is there a way to set some kind of rule :)?

Hi,

What’s your end goal here?

If you just want to make all the issues go away, you can remove the rules from your Quality Profiles so no issues are raised, or better yet, just not analyze. :sweat_smile:

Slightly more seriously, how old is the code these issues are raised on? I suspect what you’re looking at is the result of the first analysis on an existing code base? If so, you should consider adopting the Clean as You Code methodology and making sure your Quality Gate only has conditions “on New Code”.

 
HTH,
Ann

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.