File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,11 @@ jobs:
121
121
PACKAGE_URL : github.com/go-critic/go-critic/cmd/gocritic
122
122
PACKAGE_VERSION : ${{ steps.setup-env.outputs.go-critic-version }}
123
123
run : go install ${PACKAGE_URL}@${PACKAGE_VERSION}
124
+ - name : Install goimports
125
+ env :
126
+ PACKAGE_URL : golang.org/x/tools/cmd/goimports
127
+ PACKAGE_VERSION : ${{ steps.setup-env.outputs.goimports-version }}
128
+ run : go install ${PACKAGE_URL}@${PACKAGE_VERSION}
124
129
- name : Install gosec
125
130
env :
126
131
PACKAGE_URL : github.com/securego/gosec/v2/cmd/gosec
Original file line number Diff line number Diff line change @@ -85,7 +85,11 @@ repos:
85
85
- id : go-vet-repo-mod
86
86
# GoSec
87
87
- id : go-sec-repo-mod
88
-
88
+ # goimports
89
+ - id : go-imports-repo
90
+ args :
91
+ # Write changes to files
92
+ - -w
89
93
# Nix hooks
90
94
- repo : https://github.com/nix-community/nixpkgs-fmt
91
95
rev : v1.3.0
You can’t perform that action at this time.
0 commit comments