File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -90,15 +90,14 @@ def is_supported(self):
90
90
True if the command can be emulated and False otherwise.
91
91
Commands that are not supported will not impact analysis.
92
92
"""
93
- # Empty commands don't do anything
94
- if len (self .arguments ) == 0 :
95
- return False
96
-
97
- # Ignore commands operating on non-source files (e.g. linking)
98
- if not codebasin .source .is_source_file (self .filename ):
99
- return False
100
-
101
- return True
93
+ # Commands must be non-empty in order to do something.
94
+ # Commands must operate on source files.
95
+ if len (self .arguments ) > 0 and codebasin .source .is_source_file (
96
+ self .filename ,
97
+ ):
98
+ return True
99
+
100
+ return False
102
101
103
102
@classmethod
104
103
def from_json (cls , instance : dict ):
You can’t perform that action at this time.
0 commit comments