From cad6a8f2fab6193930f838e0855ea1e01d1cd99f Mon Sep 17 00:00:00 2001 From: Spolti Date: Tue, 28 Nov 2023 14:23:03 -0300 Subject: [PATCH] rename the pre-commint log file Signed-off-by: Spolti --- .dockerignore | 1 + .gitignore | 2 ++ .pre-commit-config.yaml | 4 ++-- scripts/fmt.sh | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index a81ec834..4d05efce 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,3 +4,4 @@ .DS_Store Dockerfile temp +.pre-commit.log diff --git a/.gitignore b/.gitignore index 351ba82e..ab10c6db 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ *.iml public/ + +.pre-commit.log \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index edfeed9a..3b429b16 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/scripts/fmt.sh b/scripts/fmt.sh index 474307b8..36eb5b76 100755 --- a/scripts/fmt.sh +++ b/scripts/fmt.sh @@ -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() {