File tree 2 files changed +11
-12
lines changed
2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,6 @@ jobs:
126
126
PACKAGE_URL : github.com/securego/gosec/v2/cmd/gosec
127
127
PACKAGE_VERSION : ${{ steps.setup-env.outputs.gosec-version }}
128
128
run : go install ${PACKAGE_URL}@${PACKAGE_VERSION}
129
- - name : Install shfmt
130
- env :
131
- PACKAGE_URL : mvdan.cc/sh/v3/cmd/shfmt
132
- PACKAGE_VERSION : ${{ steps.setup-env.outputs.shfmt-version }}
133
- run : go install ${PACKAGE_URL}@${PACKAGE_VERSION}
134
129
- name : Install staticcheck
135
130
env :
136
131
PACKAGE_URL : honnef.co/go/tools/cmd/staticcheck
Original file line number Diff line number Diff line change @@ -93,20 +93,24 @@ repos:
93
93
- id : nixpkgs-fmt
94
94
95
95
# Shell script hooks
96
- - repo : https://github.com/cisagov /pre-commit-shfmt
97
- rev : v0.0.2
96
+ - repo : https://github.com/scop /pre-commit-shfmt
97
+ rev : v3.7.0-4
98
98
hooks :
99
99
- id : shfmt
100
100
args :
101
+ # List files that will be formatted
102
+ - --list
103
+ # Write result to file instead of stdout
104
+ - --write
101
105
# Indent by two spaces
102
- - -i
103
- - ' 2 '
106
+ - --indent
107
+ - " 2 "
104
108
# Binary operators may start a line
105
- - -bn
109
+ - --binary-next-line
106
110
# Switch cases are indented
107
- - -ci
111
+ - --case-indent
108
112
# Redirect operators are followed by a space
109
- - -sr
113
+ - --space-redirects
110
114
- repo : https://github.com/detailyang/pre-commit-shell
111
115
rev : 1.0.5
112
116
hooks :
You can’t perform that action at this time.
0 commit comments