File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ def choose_detectors(
239
239
set (detectors_to_run ), args .detectors_to_include , detectors
240
240
)
241
241
242
+ detectors_to_run = sorted (detectors_to_run , key = lambda x : x .IMPACT )
242
243
return detectors_to_run
243
244
244
245
@@ -255,7 +256,6 @@ def __include_detectors(
255
256
else :
256
257
raise ValueError (f"Error: { detector } is not a detector" )
257
258
258
- detectors_to_run = sorted (detectors_to_run , key = lambda x : x .IMPACT )
259
259
return detectors_to_run
260
260
261
261
Original file line number Diff line number Diff line change @@ -71,9 +71,10 @@ def _detect(self) -> List[Output]:
71
71
continue
72
72
if isinstance (function , FunctionContract ) and (
73
73
function .contract_declarer .is_from_dependency ()
74
+ or function .contract_declarer .is_library
74
75
):
75
76
continue
76
- # Continue if the functon is not implemented because it means the contract is abstract
77
+ # Continue if the function is not implemented because it means the contract is abstract
77
78
if not function .is_implemented :
78
79
continue
79
80
info : DETECTOR_INFO = [function , " is never used and should be removed\n " ]
You can’t perform that action at this time.
0 commit comments