Skip to content

Commit

Permalink
Fix: Resolve pylint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann committed Jul 27, 2023
1 parent 37fad09 commit cb67145
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,6 @@ max-line-length=80
# Maximum number of lines in a module
max-module-lines=1000

# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,
dict-separator

# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no
Expand Down Expand Up @@ -472,4 +465,4 @@ valid-metaclass-classmethod-first-arg=mcs

# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=Exception
overgeneral-exceptions=builtins.Exception
2 changes: 1 addition & 1 deletion tests/plugins/test_cve_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,6 @@ def test_duplicate_cves(self):
self.assertEqual(len(results), 1)
self.assertIsInstance(results[0], LinterError)
self.assertEqual(
'VT is using CVE "CVE-2021-3807" multiple ' "times.",
'VT is using CVE "CVE-2021-3807" multiple times.',
results[0].message,
)
2 changes: 1 addition & 1 deletion troubadix/plugins/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
# "ure" is a Debian package, again too many hits for
# codespell.exclude.
PatternInFilePatternCheck(
r"(deb_(dla_)?[0-9]+(_[" r"0-9]+)?|gb_ubuntu_.+)\.nasl",
r"(deb_(dla_)?[0-9]+(_[0-9]+)?|gb_ubuntu_.+)\.nasl",
r"ure\s+==>\s+sure",
),
# gsf/PCIDSS VTs are currently using some german text parts
Expand Down

0 comments on commit cb67145

Please sign in to comment.