Is it possible to suppress/mark an inspection as 'does not apply'

I have a case where I am getting a suspicious.name.parameter warning:
"'y' should probably not be passed as parameter 'x'"

Great inspection but incorrect in this particular case: the code is valid - I do want to pass a y value where the function parameter name is x.

I can document the issue with a comment but PyCharm still gives an overall yellow grade for the module with a warning having been found. I'd prefer something like
/*jshint validthis:true */ to turn off specific  jshint warnings.
so that a maintenance programmer who follows may take my comment more seriously.
2 comments
Comment actions Permalink
If you do 'show intention actions' (Alt-Enter) you should get a menu for the inspection, under it should be the options Suppress for Class/Function/Statement. Those insert a comment like:
    # noinspection PyArgumentList
prettyPrint();
Hope that helps.
0
Comment actions Permalink
I can document the issue with a comment but PyCharm still gives an overall yellow grade for the module with a warning having been found. I'd prefer something like
0

Please sign in to leave a comment.