Skip to content

Commit

Permalink
Add documentation for useless-suppression
Browse files Browse the repository at this point in the history
Closes #4757
  • Loading branch information
Pierre-Sassoulas committed Jul 31, 2021
1 parent b71be8a commit a31e6bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/user_guide/message-control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,11 @@ Here's an example with all these rules in a single place:
# no error
print(self.bla)
print(self.blop)


Detecting useless disables
--------------------------

When pylint get better and false positives are removed,
disable that became useless can accumulate and clutter the code.
In order to clean them you can enable the ``useless-suppression`` warning.

0 comments on commit a31e6bc

Please sign in to comment.