We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f2994 commit 187a0d0Copy full SHA for 187a0d0
src/codemodder/result.py
@@ -177,9 +177,14 @@ def fuzzy_column_match(pos: CodeRange, location: Location) -> bool:
177
178
179
class ResultSet(dict[str, dict[Path, list[Result]]]):
180
- results_for_rule: dict[str, list[Result]] = {}
+ results_for_rule: dict[str, list[Result]]
181
# stores SARIF runs.tool data
182
- tools: list[dict[str, dict]] = []
+ tools: list[dict[str, dict]]
183
+
184
+ def __init__(self, *args, **kwargs):
185
+ super().__init__(*args, **kwargs)
186
+ self.results_for_rule = {}
187
+ self.tools = []
188
189
def add_result(self, result: Result):
190
self.results_for_rule.setdefault(result.rule_id, []).append(result)
0 commit comments