File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/macaron/slsa_analyzer/checks Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,14 @@ def _should_skip(
100
100
Returns True if any result of the dependency heuristic does not match the expected result.
101
101
Otherwise, returns False.
102
102
"""
103
+ mapped_h : dict [Heuristics , list [HeuristicResult ]] = {}
103
104
for heuristic , expected_result in depends_on :
104
- dep_heuristic_result : HeuristicResult = results [heuristic ]
105
- if dep_heuristic_result is not expected_result :
106
- return True
105
+ mapped_h .setdefault (heuristic , []).append (expected_result )
106
+
107
+ for heuristic , exp_results in mapped_h .items ():
108
+ dep_heuristic_result = results .get (heuristic )
109
+ if dep_heuristic_result not in exp_results :
110
+ return True
107
111
return False
108
112
109
113
def analyze_source (
You can’t perform that action at this time.
0 commit comments