File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -208,3 +208,18 @@ modules:tidy:
208
208
script :
209
209
- go mod tidy
210
210
- git diff --exit-code go.mod go.sum
211
+
212
+ lint :
213
+ image : golangci/golangci-lint
214
+ stage : test
215
+ script :
216
+ - apt update && apt install -y libkrb5-dev
217
+ # Write the code coverage report to gl-code-quality-report.json
218
+ # and print linting issues to stdout in the format: path/to/file:line description
219
+ # remove `--issues-exit-code 0` or set to non-zero to fail the job if linting issues are detected
220
+ - golangci-lint run --issues-exit-code 0 --print-issued-lines=false --out-format code-climate:gl-code-quality-report.json,line-number
221
+ artifacts :
222
+ reports :
223
+ codequality : gl-code-quality-report.json
224
+ paths :
225
+ - gl-code-quality-report.json
You can’t perform that action at this time.
0 commit comments