File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 5
5
import subprocess
6
6
import sys
7
7
8
+
8
9
def run_analyzer (data ):
9
- os .chdir (data ['directory' ])
10
- command = data ['command' ] + f' --analyze --analyzer-output html -o analyzer-results -Xclang -analyzer-config -Xclang max-nodes=75000'
10
+ os .chdir (data ["directory" ])
11
+ command = (
12
+ data ["command" ]
13
+ + f" --analyze --analyzer-output html -o analyzer-results -Xclang -analyzer-config -Xclang max-nodes=75000"
14
+ )
11
15
print (command )
12
16
subprocess .run (command , shell = True , check = True )
13
17
18
+
14
19
def pool_error (e ):
15
20
print ("Error analyzing file:" , e )
16
21
22
+
17
23
def main ():
18
24
db_path = sys .argv [1 ]
19
25
database = json .load (open (db_path ))
@@ -23,5 +29,6 @@ def main():
23
29
pool .close ()
24
30
pool .join ()
25
31
32
+
26
33
if __name__ == "__main__" :
27
34
main ()
You can’t perform that action at this time.
0 commit comments