Skip to content

Commit

Permalink
Remove unnecessary init of wildcards
Browse files Browse the repository at this point in the history
No need to pass empty dict as the wildcards parameter of the
initialization of a Rule.

Signed-off-by: Eric Brown <[email protected]>
  • Loading branch information
ericwb committed Sep 14, 2024
1 parent 0c683b7 commit daace8b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion precli/rules/go/stdlib/crypto_weak_cipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ def __init__(self, id: str):
cwe_id=327,
message="Weak ciphers like '{0}' should be avoided due to their "
"known vulnerabilities and weaknesses.",
wildcards={},
config=Config(level=Level.ERROR),
)

Expand Down
1 change: 0 additions & 1 deletion precli/rules/go/stdlib/crypto_weak_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def __init__(self, id: str):
cwe_id=328,
message="Use of weak hash function '{0}' does not meet security "
"expectations.",
wildcards={},
config=Config(level=Level.ERROR),
)

Expand Down
1 change: 0 additions & 1 deletion precli/rules/go/stdlib/crypto_weak_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def __init__(self, id: str):
cwe_id=326,
message="Using '{0}' key sizes less than '{1}' bits is considered "
"vulnerable to attacks.",
wildcards={},
)

def analyze_call_expression(
Expand Down

0 comments on commit daace8b

Please sign in to comment.