Skip to content

Commit 6010b66

Browse files
committed
Renamed to in hook descriptions
1 parent 5312f97 commit 6010b66

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.pre-commit-hooks.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
entry: go-vet.sh
9292
types: [go]
9393
language: 'script'
94-
description: "Run 'go vet $file' for each staged .go file"
94+
description: "Run 'go vet $FILE' for each staged .go file"
9595
pass_filenames: true
9696

9797
# ==============================================================================
@@ -147,7 +147,7 @@
147147
entry: go-fmt-fix.sh
148148
types: [go]
149149
language: 'script'
150-
description: "Run 'gofmt -l -w $file' for each staged .go file"
150+
description: "Run 'gofmt -l -w $FILE' for each staged .go file"
151151
pass_filenames: true
152152

153153
# ==============================================================================
@@ -162,7 +162,7 @@
162162
entry: go-imports-fix.sh
163163
types: [go]
164164
language: 'script'
165-
description: "Run 'goimports -l -w $file' for each staged .go file"
165+
description: "Run 'goimports -l -w $FILE' for each staged .go file"
166166
pass_filenames: true
167167

168168
# ==============================================================================
@@ -177,7 +177,7 @@
177177
entry: go-returns-fix.sh
178178
types: [go]
179179
language: 'script'
180-
description: "Run 'goreturns -p -l -w $file' for each staged go file"
180+
description: "Run 'goreturns -p -l -w $FILE' for each staged go file"
181181
pass_filenames: true
182182

183183
# ==============================================================================
@@ -189,7 +189,7 @@
189189
entry: go-lint.sh
190190
types: [go]
191191
language: 'script'
192-
description: "Run 'golint $file' for each staged .go file"
192+
description: "Run 'golint $FILE' for each staged .go file"
193193
pass_filenames: true
194194

195195
# ==============================================================================
@@ -201,7 +201,7 @@
201201
entry: go-critic.sh
202202
types: [go]
203203
language: 'script'
204-
description: "Run 'gocritic check $file' for each staged .go file"
204+
description: "Run 'gocritic check $FILE' for each staged .go file"
205205
pass_filenames: true
206206

207207
# ==============================================================================
@@ -215,7 +215,7 @@
215215
entry: golangci-lint.sh
216216
types: [go]
217217
language: 'script'
218-
description: "Run 'golangci-lint run $file' for each staged .go file"
218+
description: "Run 'golangci-lint run $FILE' for each staged .go file"
219219
pass_filenames: true
220220

221221
# ==============================================================================
@@ -230,7 +230,7 @@
230230
entry: golangci-lint-fix.sh
231231
types: [go]
232232
language: 'script'
233-
description: "Run 'golangci-lint run --fix $file' for each staged .go file"
233+
description: "Run 'golangci-lint run --fix $FILE' for each staged .go file"
234234
pass_filenames: true
235235

236236
# ==============================================================================

0 commit comments

Comments
 (0)