Skip to content

Commit

Permalink
go-lint pre-commit only applies to staged changes (#382)
Browse files Browse the repository at this point in the history
* lint pre-commit only applies to staged changes
* using remote golangci/golangci-lint instead of a local hook
  • Loading branch information
YrrepNoj authored Mar 14, 2022
1 parent bc89361 commit 7f2379d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,7 @@ repos:
rev: v0.4.0
hooks:
- id: go-fmt
## Normally we wouldn't need to do a local hook but we need to modify the shell script that gets run to first change directories into the `cli` folder
- repo: local
hooks:
- id: golangci-lint
name: golangci-lint
entry: hooks/run-golangci-lint.sh
types: [go]
language: script
pass_filenames: false
description: "Runs `golangci-lint`, requires https://github.com/golangci/golangci-lint"
- repo: local
hooks:
- id: generate-zarf-schema
Expand Down
2 changes: 0 additions & 2 deletions hooks/run-golangci-lint.sh

This file was deleted.

0 comments on commit 7f2379d

Please sign in to comment.