diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-02-09 09:17:58 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-02-09 13:06:17 +0100 |
commit | 5f5f0937544e135891a008273eb7a44aac7f0c5b (patch) | |
tree | 9b23e331a9d77cc490fc5209c6197772068f3994 /solenv | |
parent | 4b938c558d004537cf73ca4319019ff64f052270 (diff) |
clang-format: improve error message when CI fails
Don't just tell the problem but hint how to fix it.
Change-Id: I9d079ee7d4ed61266e22a3fa21efe10366724645
Reviewed-on: https://gerrit.libreoffice.org/49471
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'solenv')
-rwxr-xr-x | solenv/clang-format/check-last-commit | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/solenv/clang-format/check-last-commit b/solenv/clang-format/check-last-commit index 8c3628af76d1..2db666ab2aec 100755 --- a/solenv/clang-format/check-last-commit +++ b/solenv/clang-format/check-last-commit @@ -60,7 +60,10 @@ sub check_style() if (scalar @bad_names) { print("\nERROR: The above differences were found between the code to commit \n"); - print("and the clang-format rules.\n"); + print("and the clang-format rules. Tips:\n"); + print("\n- You may run '/opt/lo/bin/clang-format -i <problematic file>' to fix up style automatically.\n"); + print("- See solenv/clang-format/README on where to get the required version of clang-format binaries.\n"); + print("- If you renamed a blacklisted file, update solenv/clang-format/blacklist accordingly to keep it blacklisted.\n"); print("\nsolenv/clang-format/check-last-commit: KO\n"); exit(1); } |