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 146ac2c commit 0780d31
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ google/

# IDE
.idea/

.pre-commit.log
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ repos:
rev: v1.51.1
hooks:
- id: golangci-lint
log_file: .pre-commit.log
entry: golangci-lint run
exclude: ^(gen/)
args:
Expand All @@ -24,6 +25,7 @@ repos:
rev: v2.4.1
hooks:
- id: prettier
log_file: .pre-commit.log
exclude: ^(.github/)
args:
- --no-bracket-spacing
6 changes: 3 additions & 3 deletions scripts/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.#
# limitations under the License.

pre-commit run --all-files
RETURN_CODE=$?
## cat this file for helping on identifying the root cause when some issue happens
if [ -f /$USER/.cache/pre-commit/pre-commit.log ]; then
cat /$USER/.cache/pre-commit/pre-commit.log
if [ -f .pre-commit.log ]; then
cat .pre-commit.log
fi

function echoError() {
Expand Down

0 comments on commit 0780d31

Please sign in to comment.