From bcc1489bc523849d651e709171b84c7a4d775cd7 Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Wed, 16 Aug 2017 10:21:37 +0200 Subject: [PATCH] testing: Make linter fail with exit code if any check fails. --- tools/lint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lint b/tools/lint index 4410c97..17d098b 100755 --- a/tools/lint +++ b/tools/lint @@ -21,7 +21,7 @@ def lint_all(args, options): 'html', 'json', 'md', 'txt', 'text', 'yaml'], use_shebang=True, group_by_ftype=True, exclude=EXCLUDED_FILES)) check_custom_checks_py, check_custom_checks_nonpy = build_custom_checkers(by_lang) - return all([check_pep8(by_lang['py']), + return any([check_pep8(by_lang['py']), check_custom_checks_py(), check_custom_checks_nonpy()])