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
- asasalint # Check for pass []any as any in variadic func(...any)
23
26
- asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers
24
27
- bidichk # Checks for dangerous unicode character sequences
25
-
# - bodyclose # checks whether HTTP response body is closed successfully
26
-
# - contextcheck # check the function whether use a non-inherited context
27
-
- decorder # check declaration order and count of types, constants, variables and functions
28
-
# - depguard # Go linter that checks if package imports are in a list of acceptable packages
28
+
- bodyclose # Checks whether HTTP response body is closed successfully
29
+
# - copyloopvar # Detects places where loop variables are copied
30
+
- decorder # Check declaration order and count of types, constants, variables and functions
29
31
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f())
30
32
- dupl # Tool for code clone detection
31
-
- durationcheck # check for two durations multiplied together
33
+
- dupword # A linter that checks for duplicate words in the source code (usually miswritten)
34
+
- durationcheck # Check for two durations multiplied together
32
35
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
33
36
- 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.
34
37
- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`.
35
38
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13.
36
-
- exhaustive# check exhaustiveness of enum switch statements
39
+
- execinquery# Execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds.
37
40
- exportloopref # checks for pointers to enclosing loop variables
38
-
# - forbidigo # Forbids identifiers
39
41
- forcetypeassert # finds forced type assertions
40
42
- gci # Gci control golang package import order and make it always deterministic.
41
-
# - gochecknoglobals # Checks that no globals are present in Go code
42
-
# - gochecknoinits # Checks that no init functions are present in Go code
43
+
- gocheckcompilerdirectives # Checks that go compiler directive comments (//go:) are valid.
43
44
- gocognit # Computes and checks the cognitive complexity of functions
44
45
- goconst # Finds repeated strings that could be replaced by a constant
45
46
- gocritic # The most opinionated Go source code linter
@@ -54,51 +55,75 @@ linters:
54
55
- gomodguard # Allow and block list linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations.
55
56
- goprintffuncname # Checks that printf-like functions are named with `f` at the end
56
57
- gosec # Inspects source code for security problems
58
+
- gosmopolitan # Report certain i18n/l10n anti-patterns in your Go codebase
57
59
- gosimple # Linter for Go source code that specializes in simplifying a code
58
60
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
59
-
- grouper # An analyzer to analyze expression groups.
61
+
- grouper # An analyzer to analyze expression groups
60
62
- importas # Enforces consistent import aliases
61
63
- ineffassign # Detects when assignments to existing variables are not used
64
+
# - intrange # Intrange is a linter to find places where for loops could make use of an integer range
65
+
- loggercheck # Checks key value pairs for common logger libraries (kitlog,klog,logr,zap).
66
+
- makezero # Finds slice declarations with non-zero initial length
67
+
- mirror # Reports wrong mirror patterns of bytes/strings usage
62
68
- misspell # Finds commonly misspelled English words in comments
63
69
- nakedret # Finds naked returns in functions greater than a specified function length
70
+
- nestif # Reports deeply nested if statements
64
71
- nilerr # Finds the code that returns nil even if it checks that the error is not nil.
65
72
- nilnil # Checks that there is no simultaneous return of `nil` error and an invalid value.
66
-
#- noctx # noctx finds sending http request without context.Context
73
+
- noctx # noctx finds sending http request without context.Context
67
74
- nolintlint # Reports ill-formed or insufficient nolint directives
68
-
# - paralleltest # paralleltest detects missing usage of t.Parallel() method in your Go test
75
+
- nosprintfhostport # Checks for misuse of Sprintf to construct a host with port in a URL
76
+
- perfsprint # Checks that fmt.Sprintf can be replaced with a faster alternative.
77
+
- prealloc # Finds slice declarations that could potentially be preallocated
69
78
- predeclared # find code that shadows one of Go's predeclared identifiers
0 commit comments