-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Chore: spotless 플러그인 추가 * Chore: pre-commit 스크립트 추가 * Style: 기존 코드에 spotless 코드 스타일 적용 * Chore: spotless test 추가
- Loading branch information
1 parent
41dbf8f
commit c068a7d
Showing
4 changed files
with
77 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
PROJECT_ROOT=$(git rev-parse --show-toplevel) | ||
|
||
# Part 1 | ||
stagedFiles=$(git diff --staged --name-only) | ||
|
||
# Part 2 | ||
echo "Running spotlessApply. Formatting code..." | ||
cd "$PROJECT_ROOT" && ./gradlew spotlessApply | ||
|
||
# Checking the exit status | ||
if [ $? -ne 0 ]; then | ||
echo "Spotless apply failed!" | ||
exit 1 | ||
fi | ||
|
||
# Part 3 | ||
for file in $stagedFiles; do | ||
if test -f "$file"; then | ||
git add "$file" | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,6 @@ | |
|
||
@SpringBootTest | ||
class RunUsApplicationTests { | ||
|
||
@Test | ||
void contextLoads() { | ||
} | ||
|
||
void contextLoads() {} | ||
} |