Skip to content
Permalink
Browse files

Improve wording in verify_indentation

  • Loading branch information
m-kuhn committed May 11, 2020
1 parent aa1a954 commit f171232ee659b73b46cec2d9203aed8b007b7020
Showing with 4 additions and 4 deletions.
  1. +4 −4 scripts/verify_indentation.sh
@@ -29,7 +29,7 @@ for f in $FILES; do
continue
fi

echo "Checking $f"
# echo "Checking $f"
case "$f" in
*.cpp|*.c|*.h|*.cxx|*.hxx|*.c++|*.h++|*.cc|*.hh|*.C|*.H|*.sip|*.py)
;;
@@ -45,7 +45,7 @@ for f in $FILES; do
if diff -u "$m" "$f" >>$ASTYLEDIFF; then
rm "$m"
else
echo "File $f needs indentation"
echo "File $f is not styled properly."
fi
done

@@ -57,9 +57,9 @@ if [ -s "$ASTYLEDIFF" ]; then
cat <<EOF
Tips to prevent and resolve:
* Enable WITH_ASTYLE in your cmake configuration to format C++ code
* Install astyle to format C++ code
* Install autopep8 (>= 1.2.1) to format python code
* Use "scripts/astyle.sh file" to fix the now badly indented files
* Use "scripts/astyle.sh file" to fix the now incorrectly formatted files
* Consider using scripts/prepare_commit.sh as pre-commit hook to avoid this
in the future (ln -s ../../scripts/prepare_commit.sh .git/hooks/pre-commit) or
run it manually before each commit.

0 comments on commit f171232

Please sign in to comment.
You can’t perform that action at this time.