Exit code
The exit code is calculated with a bitwise OR operation between the following codes:
0 - OK
1 - Internal Error
2 - Errors
4 - Warnings
8 - Infos
16 - Build config or compile error
The codes for errors, warnings and infos indicate the presence of such failures in the lint report or in the New Failures/Added Rules categories of the compare report.
The exit code can be filtered using the following arguments:
-fail_on severity: E.g. if the fail_on severity is set on “error”, the codes for warnings(4) and infos(8) will be filtered out;
-zero_exit_on_lint_failures: filters everything with the exception of the internal error(1);
-ignore_build_config_errors: if there are build configuration errors(16) they will be ignored and the exit code will be filtered;
-ignore_compile_errors: if there are compile errors(16) they will be ignored and the exit code will be filtered;
-ignore_lint_errors: if there are linting errors(2) they will be ignored and the exit code will be filtered;
-ignore_lint_warnings: if there are linting warnings(4) they will be ignored and the exit code will be filtered;
-ignore_lint_infos: if there are linting infos(8) they will be ignored and the exit code will be filtered.