Skip to content

Commit 7af80ab

Browse files
author
chen
committed
add make format
1 parent e38aadd commit 7af80ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.githooks/pre-commit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ -n "$KT_FILES" ]; then
1010
echo "Running spotlessKotlinCheck..."
1111
./gradlew spotlessKotlinCheck
1212
if [ $? -ne 0 ]; then
13-
echo "❌ Kotlin files need formatting. Please run './gradlew spotlessKotlinApply' and commit again."
13+
echo "❌ Kotlin files need formatting. Please run './gradlew spotlessKotlinApply' or 'make format' and commit again."
1414
exit 1
1515
fi
1616
fi
@@ -19,7 +19,7 @@ if [ -n "$GRADLE_FILES" ]; then
1919
echo "Running spotlessKotlinGradleCheck..."
2020
./gradlew spotlessKotlinGradleCheck
2121
if [ $? -ne 0 ]; then
22-
echo "❌ Gradle files need formatting. Please run './gradlew spotlessKotlinGradleApply' and commit again."
22+
echo "❌ Gradle files need formatting. Please run './gradlew spotlessKotlinGradleApply' or 'make format' and commit again."
2323
exit 1
2424
fi
2525
fi
@@ -28,7 +28,7 @@ if [ -n "$CPP_FILES" ]; then
2828
echo "Running spotlessCppCheck..."
2929
./gradlew spotlessCppCheck
3030
if [ $? -ne 0 ]; then
31-
echo "❌ C++ files need formatting. Please run './gradlew spotlessCppApply' and commit again."
31+
echo "❌ C++ files need formatting. Please run './gradlew spotlessCppApply' or 'make format' and commit again."
3232
exit 1
3333
fi
3434
fi

0 commit comments

Comments
 (0)