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
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- golangci-lint :
6
+ linters :
7
7
name : Golang-CI (lint)
8
8
runs-on : ubuntu-latest
9
9
steps :
18
18
- name : Run linter
19
19
uses :
golangci/[email protected] # Action page: <https://github.com/golangci/golangci-lint-action>
20
20
with :
21
- version : v1.60 # without patch version
21
+ version : v1.61 # without patch version
22
22
only-new-issues : false # show only new issues if it's a pull request
23
23
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/
38
38
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
39
39
- errorlint # find code that will cause problems with the error wrapping scheme introduced in Go 1.13
40
40
- 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
42
42
- gochecknoglobals # Checks that no globals are present in Go code
43
43
- gochecknoinits # Checks that no init functions are present in Go code
44
44
- gocognit # Computes and checks the cognitive complexity of functions
You can’t perform that action at this time.
0 commit comments