Revert "check-last-commit: more detailed advice on using clang-format"

This reverts commit f59d449ecf.

Reason for revert: confusing

Change-Id: If5924ff3952f344f7a418e80d4ceb774dea94430
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146707
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
Ilmari Lauhakangas
2023-02-10 08:12:26 +00:00
parent 5c96e813be
commit 0fcc2f933e
+1 -5
View File
@@ -65,11 +65,7 @@ sub check_style()
{
print("\nERROR: The above differences were found between the code to commit \n");
print("and the clang-format rules. Tips:\n");
print("\n- On your local machine you may check how clang-format would modify the problematic file by saying\n");
print(" diff --unified <problematic file> <(/opt/lo/bin/clang-format <problematic file>)\n");
print("- NOTE: you should only correct the lines that you changed. Do not add unrelated formatting to your patch.\n");
print("- If the suggested corrections only apply to the lines you changed, you may run\n");
print(" '/opt/lo/bin/clang-format -i <problematic file>' to fix up style automatically.\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 an excluded file, update solenv/clang-format/excludelist accordingly to keep it excluded.\n");
print("\nsolenv/clang-format/check-last-commit: KO\n");