You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .golangci.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ linters:
19
19
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: false, auto-fix: false]
20
20
- errchkjson # Checks types passed to the json encoding functions. Reports unsupported types and optionally reports occasions, where the check for the returned error can be omitted. [fast: false, auto-fix: false]
21
21
- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`. [fast: false, auto-fix: false]
22
+
- exptostd # Detects functions from golang.org/x/exp/ that can be replaced by std functions. [auto-fix]
22
23
- gci # Gci controls golang package import order and makes it always deterministic. [fast: true, auto-fix: false]
23
24
- gocheckcompilerdirectives # Checks that go compiler directive comments (//go:) are valid. [fast: true, auto-fix: false]
24
25
- gochecksumtype # Run exhaustiveness checks on Go "sum types" [fast: false, auto-fix: false]
@@ -46,6 +47,7 @@ linters:
46
47
- musttag # enforce field tags in (un)marshaled structs [fast: false, auto-fix: false]
47
48
- nakedret # Finds naked returns in functions greater than a specified function length [fast: true, auto-fix: false]
48
49
- nilerr # Finds the code that returns nil even if it checks that the error is not nil. [fast: false, auto-fix: false]
50
+
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity [fast: true, auto-fix: false]
0 commit comments