Skip to content

Commit

Permalink
rename the pre-commint log file
Browse files Browse the repository at this point in the history
Signed-off-by: Spolti <[email protected]>
  • Loading branch information
spolti committed Nov 28, 2023
1 parent cd9b8dd commit cad6a8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.DS_Store
Dockerfile
temp
.pre-commit.log
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
*.iml

public/

.pre-commit.log
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ repos:
rev: v1.51.1
hooks:
- id: golangci-lint
log_file: /tmp/pre-commit.log
log_file: .pre-commit.log
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.4.1
hooks:
- id: prettier
log_file: /tmp/pre-commit.log
log_file: .pre-commit.log
4 changes: 2 additions & 2 deletions scripts/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pre-commit run --all-files
RETURN_CODE=$?

# cat this file for helping on identifying the root cause when some issue happens
if [ -f /tmp/pre-commit.log ]; then
cat /tmp/pre-commit.log
if [ -f .pre-commit.log ]; then
cat .pre-commit.log
fi

function echoError() {
Expand Down

0 comments on commit cad6a8f

Please sign in to comment.