Skip to content
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/
@@ -29,7 +29,7 @@ for f in $FILES; do

echo "Checking $f"
# echo "Checking $f"
case "$f" in
@@ -45,7 +45,7 @@ for f in $FILES; do
if diff -u "$m" "$f" >>$ASTYLEDIFF; then
rm "$m"
echo "File $f needs indentation"
echo "File $f is not styled properly."

@@ -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/ file" to fix the now badly indented files
* Use "scripts/ file" to fix the now incorrectly formatted files
* Consider using scripts/ as pre-commit hook to avoid this
in the future (ln -s ../../scripts/ .git/hooks/pre-commit) or
run it manually before each commit.

0 comments on commit f171232

Please sign in to comment.