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
- errcheck # checking for unchecked errors, these unchecked errors can be critical bugs in some cases
57
-
- gosimple # specializes in simplifying a code
58
-
- govet # reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
59
-
- ineffassign # detects when assignments to existing variables are not used
60
-
- staticcheck # is a go vet on steroids, applying a ton of static analysis checks
61
-
- typecheck # like the front-end of a Go compiler, parses and type-checks Go code
62
-
- unused # checks for unused constants, variables, functions and types
63
-
# extra enabled by us
64
-
- asasalint # checks for pass []any as any in variadic func(...any)
65
-
- asciicheck # checks that your code does not contain non-ASCII identifiers
66
-
- bidichk # checks for dangerous unicode character sequences
67
-
- bodyclose # checks whether HTTP response body is closed successfully
68
-
- cyclop # checks function and package cyclomatic complexity
69
-
- dupl # tool for code clone detection
70
-
- durationcheck # checks for two durations multiplied together
71
-
- dogsled # find assignments/declarations with too many blank identifiers
72
-
- errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
73
-
- errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13
74
-
- exhaustive # checks exhaustiveness of enum switch statements
75
-
- exptostd # detects functions from golang.org/x/exp/ that can be replaced by std functions
76
-
- copyloopvar # checks for pointers to enclosing loop variables
77
-
- fatcontext # detects nested contexts in loops and function literals
78
-
- forbidigo # forbids identifiers
79
-
- funlen # tool for detection of long functions
80
-
- gocheckcompilerdirectives # validates go compiler directive comments (//go:)
81
-
- goconst # finds repeated strings that could be replaced by a constant
82
-
- gocritic # provides diagnostics that check for bugs, performance and style issues
83
-
- gofmt # checks if the code is formatted according to 'gofmt' command
84
-
- goimports # in addition to fixing imports, goimports also formats your code in the same style as gofmt
85
-
- gomoddirectives # manages the use of 'replace', 'retract', and 'excludes' directives in go.mod
86
-
- gomodguard # allow and block lists linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations
87
-
- goprintffuncname # checks that printf-like functions are named with f at the end
88
-
- gosec # inspects source code for security problems
89
-
- loggercheck # checks key value pairs for common logger libraries (kitlog,klog,logr,zap)
90
-
- makezero # finds slice declarations with non-zero initial length
91
-
- mirror # reports wrong mirror patterns of bytes/strings usage
92
-
- misspell # finds commonly misspelled English words
93
-
- nakedret # finds naked returns in functions greater than a specified function length
94
-
- nestif # reports deeply nested if statements
95
-
- nilerr # finds the code that returns nil even if it checks that the error is not nil
96
-
- nolintlint # reports ill-formed or insufficient nolint directives
97
-
- nosprintfhostport # checks for misuse of Sprintf to construct a host with port in a URL
98
-
- perfsprint # Golang linter for performance, aiming at usages of fmt.Sprintf which have faster alternatives
99
-
- predeclared # finds code that shadows one of Go's predeclared identifiers
100
-
- promlinter # checks Prometheus metrics naming via promlint
101
-
- reassign # checks that package variables are not reassigned
102
-
- revive # fast, configurable, extensible, flexible, and beautiful linter for Go, drop-in replacement of golint
103
-
- rowserrcheck # checks whether Err of rows is checked successfully
104
-
- sqlclosecheck # checks that sql.Rows and sql.Stmt are closed
105
-
- sloglint # A Go linter that ensures consistent code style when using log/slog
106
-
- tagliatelle # checks the struct tags.
107
-
- testableexamples # checks if examples are testable (have an expected output)
108
-
- tparallel # detects inappropriate usage of t.Parallel() method in your Go test codes
109
-
- usetesting # detects using os.Setenv instead of t.Setenv since Go1.17
110
-
- unconvert # removes unnecessary type conversions
111
-
- unparam # reports unused function parameters
112
-
- usestdlibvars # detects the possibility to use variables/constants from the Go standard library
0 commit comments