def static_analysis(output_file, pretty, file):
    """Run static analysis module on ELF file."""
    analyzed_file = AnalyzedFile(file)
    analyzer = StaticAnalyzer(analyzed_file)
    output = analyzer.run_analysis()

    # output to proper directory
    if not output_file:
        output_file = os.path.dirname(file)

    if not output_file.endswith('/'):
        output_file += '/'

    # construct output file name
    file_name = f'static.{os.path.basename(file)}.json'

    output_file += file_name

    save_output(output, output_file, pretty)
Run static analysis module on ELF file.
lisa/manage.py