Skip to content

Commit

Permalink
Ruff: Add and fix D3
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik committed Aug 8, 2024
1 parent bdd9dd0 commit 8f7bee9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dojo/tools/nikto/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class NiktoParser:
The current parser support 3 sources:
- XML output (old)
- new XML output (with nxvmlversion=\"1.2\" type)
- new XML output (with nxvmlversion="1.2" type)
- JSON output
See: https://github.com/sullo/nikto
Expand Down
2 changes: 1 addition & 1 deletion dojo/tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def get_npm_cwe(item_node):
"cwe": null
"cwe": ["CWE-173", "CWE-200","CWE-601"] (or [])
"cwe": "CWE-1234"
"cwe": "[\"CWE-173\",\"CWE-200\",\"CWE-601\"]" (or "[]")
"cwe": '["CWE-173","CWE-200","CWE-601"]' (or "[]")
"""
cwe_node = item_node.get("cwe")
if cwe_node:
Expand Down
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ select = [
"E",
"W",
"I",
"D3",
"UP",
"YTT",
"ASYNC",
Expand Down

0 comments on commit 8f7bee9

Please sign in to comment.