Skip to content

Commit

Permalink
pylint: Remove some old false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Jan 31, 2024
1 parent 4db5737 commit 4c3dfd7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/pylint/runpylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ def __init__(self):
self.pylintrc_path = os.path.join(current_dir, "pylintrc")

self.false_positives = [
FalsePositive(r"Catching an exception which doesn't inherit from (BaseException|Exception): (BlockDev|DM|Crypto|Swap|LVM|Btrfs|MDRaid|Utils|G)Error$"),
FalsePositive(r"Instance of 'int' has no .* member"),
FalsePositive(r"Method 'do_task' is abstract in class 'Task' but is not overridden"),
FalsePositive(r"Method 'do_task' is abstract in class 'UnimplementedTask' but is not overridden"),
FalsePositive(r"No value for argument 'member_count' in unbound method call$"),
FalsePositive(r"No value for argument 'smallest_member_size' in unbound method call$"),
FalsePositive(r"Parameters differ from overridden 'do_task' method$"),
FalsePositive(r"Bad option value '(subprocess-popen-preexec-fn|try-except-raise|environment-modify|arguments-renamed|redundant-u-string-prefix)'"),
FalsePositive(r"Instance of '(Action.*Device|Action.*Format|Action.*Member|Device|DeviceAction|DeviceFormat|Event|ObjectID|PartitionDevice|StorageDevice|BTRFS.*Device|LoopDevice)' has no 'id' member$"),
FalsePositive(r"Instance of 'GError' has no 'message' member"), # overriding currently broken local pylint disable
FalsePositive(r"Module '(gi.repository.Gio|gi.repository.GLib)' has no .* member"), # pylint/astroid has issues with GI modules https://github.com/PyCQA/pylint/issues/6352
FalsePositive(r"No name '.*' in module 'libmount'")
]

Expand Down

0 comments on commit 4c3dfd7

Please sign in to comment.