Skip to content

Commit 7f2379d

Browse files
authored
go-lint pre-commit only applies to staged changes (#382)
* lint pre-commit only applies to staged changes * using remote golangci/golangci-lint instead of a local hook
1 parent bc89361 commit 7f2379d

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,7 @@ repos:
2929
rev: v0.4.0
3030
hooks:
3131
- id: go-fmt
32-
## 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
33-
- repo: local
34-
hooks:
3532
- id: golangci-lint
36-
name: golangci-lint
37-
entry: hooks/run-golangci-lint.sh
38-
types: [go]
39-
language: script
40-
pass_filenames: false
41-
description: "Runs `golangci-lint`, requires https://github.com/golangci/golangci-lint"
4233
- repo: local
4334
hooks:
4435
- id: generate-zarf-schema

hooks/run-golangci-lint.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)