9 def run_analyzer(data
):
10 os
.chdir(data
["directory"])
13 + f
" --analyze --analyzer-output html -o analyzer-results -Xclang -analyzer-config -Xclang max-nodes=75000"
16 subprocess
.run(command
, shell
=True, check
=True)
20 print("Error analyzing file:", e
)
25 database
= json
.load(open(db_path
))
27 with multiprocessing
.Pool() as pool
:
28 pool
.map_async(run_analyzer
, [k
for k
in database
], error_callback
=pool_error
)
33 if __name__
== "__main__":