Skip to content

Commit 3218322

Browse files
authored
fix: references to go-critic executable (renamed from gocritic) (#45)
Update invocations and docs to use/reference `go-critic` to match upstream rename. * go-critic/go-critic#1482
1 parent 2dfc4f3 commit 3218322

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
types: [go]
171171
exclude: '(^|/)vendor/'
172172
language: 'script'
173-
description: "Run 'gocritic check [$ARGS] $FILE' for each staged .go file"
173+
description: "Run 'go-critic check [$ARGS] $FILE' for each staged .go file"
174174
pass_filenames: true
175175

176176
# ==============================================================================

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,9 @@ You can use the `"verbose: true"` hook configuration to always show hook output.
774774
### go-critic
775775
The most opinionated Go source code linter for code audit.
776776
777-
| Hook ID | Description |
778-
|-------------|---------------------------------------------------------------|
779-
| `go-critic` | Run `'gocritic check [$ARGS] $FILE'` for each staged .go file |
777+
| Hook ID | Description |
778+
|-------------|----------------------------------------------------------------|
779+
| `go-critic` | Run `'go-critic check [$ARGS] $FILE'` for each staged .go file |
780780
781781
##### Install
782782
https://github.com/go-critic/go-critic#installation
@@ -798,7 +798,7 @@ The most opinionated Go source code linter for code audit.
798798
799799
#### Help
800800
- https://go-critic.github.io/overview
801-
- `gocritic check -help`
801+
- `go-critic check -help`
802802
803803
-----------------
804804
### golangci-lint

go-critic.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
2-
cmd=(gocritic check)
2+
cmd=(go-critic check)
33
. "$(dirname "${0}")/lib/cmd-files.bash"

0 commit comments

Comments
 (0)