()
| 935 | |
| 936 | |
| 937 | def Main(): |
| 938 | workspace = abspath(join(dirname(sys.argv[0]), '..')) |
| 939 | parser = GetOptions() |
| 940 | (options, args) = parser.parse_args() |
| 941 | use_linter_cache = not options.no_linter_cache |
| 942 | checks = [ |
| 943 | CheckDeps, |
| 944 | ClangFormatProcessor(use_cache=use_linter_cache), |
| 945 | TorqueLintProcessor(use_cache=use_linter_cache), |
| 946 | JSLintProcessor(use_cache=use_linter_cache), |
| 947 | SourceProcessor(), |
| 948 | StatusFilesProcessor(), |
| 949 | PyTests, |
| 950 | GCMoleProcessor(), |
| 951 | ] |
| 952 | if not options.no_lint: |
| 953 | checks.append(CppLintProcessor(use_cache=use_linter_cache)) |
| 954 | |
| 955 | |
| 956 | failure_lines = run_checks(checks, workspace) |
| 957 | if failure_lines: |
| 958 | print('__________________') |
| 959 | print('==================') |
| 960 | print(f'Checks failed:\n{failure_lines}') |
| 961 | return 1 |
| 962 | return 0 |
| 963 | |
| 964 | |
| 965 | if __name__ == '__main__': |
no test coverage detected
searching dependent graphs…