<reponame>Moecker/samo_tidy
import samo_tidy.core.compdb_parser as compdb_parser
import samo_tidy.core.summary as summary
import samo_tidy.facade.facade_lib as facade_lib


def main():
    """Binary main entry point"""
    facade_lib.main(run_serial)


def run_serial(the_config, compdb):
    """Executes a serial run, one command after another"""
    commands = compdb_parser.parse_compdb(compdb)
    facade_lib.apply_checkers_for_commands(commands, the_config)
    # TODO The global state of summary is hard to test
    return summary.get_summary()


if __name__ == "__main__":
    main()

import samo_tidy.core.compdb_parser as compdb_parser
import samo_tidy.core.summary as summary
import samo_tidy.facade.facade_lib as facade_lib


def main():
    """Binary main entry point"""
    facade_lib.main(run_serial)


def run_serial(the_config, compdb):
    """Executes a serial run, one command after another"""
    commands = compdb_parser.parse_compdb(compdb)
    facade_lib.apply_checkers_for_commands(commands, the_config)
    # TODO The global state of summary is hard to test
    return summary.get_summary()


if __name__ == "__main__":
    main()
Binary main entry point Executes a serial run, one command after another # TODO The global state of summary is hard to test