File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Linters
33on : [push, pull_request]
44
55jobs :
6- golangci-lint :
6+ linters :
77 name : Golang-CI (lint)
88 runs-on : ubuntu-latest
99 steps :
1818 - name : Run linter
1919 uses :
golangci/[email protected] # Action page: <https://github.com/golangci/golangci-lint-action> 2020 with :
21- version : v1.60 # without patch version
21+ version : v1.61 # without patch version
2222 only-new-issues : false # show only new issues if it's a pull request
2323 args : --timeout=10m --build-tags=race ./...
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ linters: # All available linters list: <https://golangci-lint.run/usage/linters/
3838 - errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
3939 - errorlint # find code that will cause problems with the error wrapping scheme introduced in Go 1.13
4040 - exhaustive # check exhaustiveness of enum switch statements
41- - exportloopref # checks for pointers to enclosing loop variables
41+ - copyloopvar # Checks for using loop variables in function literal closures
4242 - gochecknoglobals # Checks that no globals are present in Go code
4343 - gochecknoinits # Checks that no init functions are present in Go code
4444 - gocognit # Computes and checks the cognitive complexity of functions
You can’t perform that action at this time.
0 commit comments