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)
26
+
- asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers
27
+
- bidichk # Checks for dangerous unicode character sequences
28
+
- bodyclose # checks whether HTTP response body is closed successfully
29
+
- containedctx # containedctx is a linter that detects struct contained context.Context field
30
+
- contextcheck # check whether the function uses a non-inherited context
31
+
- cyclop # checks function and package cyclomatic complexity
32
+
- decorder # check declaration order and count of types, constants, variables and functions
33
+
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f())
34
+
- dupl # Tool for code clone detection
35
+
- dupword # checks for duplicate words in the source code
36
+
- durationcheck # check for two durations multiplied together
37
+
- errcheck # errcheck is a program for checking for unchecked errors in Go code. These unchecked errors can be critical bugs in some cases
38
+
- 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.
39
+
- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`.
40
+
- 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.
41
+
- execinquery # execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds
42
+
- exportloopref # checks for pointers to enclosing loop variables
43
+
- funlen # Tool for detection of long functions
44
+
- ginkgolinter # enforces standards of using ginkgo and gomega
45
+
- gocheckcompilerdirectives # Checks that go compiler directive comments (//go:) are valid
46
+
- gocognit # Computes and checks the cognitive complexity of functions
47
+
- goconst # Finds repeated strings that could be replaced by a constant
48
+
- gocritic # Provides diagnostics that check for bugs, performance and style issues.
49
+
- gocyclo # Computes and checks the cyclomatic complexity of functions
50
+
- godot # Check if comments end in a period
51
+
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
52
+
- gofumpt # Gofumpt checks whether code was gofumpt-ed.
53
+
- goimports # Check import statements are formatted according to the 'goimport' command. Reformat imports in autofix mode.
54
+
- 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
+
- goprintffuncname # Checks that printf-like functions are named with `f` at the end
56
+
- gosec # Inspects source code for security problems
57
+
- gosimple # Linter for Go source code that specializes in simplifying code
58
+
- gosmopolitan # Report certain i18n/l10n anti-patterns in your Go codebase
59
+
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
60
+
- grouper # An analyzer to analyze expression groups.
- ineffassign # Detects when assignments to existing variables are not used
64
+
- interfacebloat # A linter that checks the number of methods inside an interface
65
+
- intrange # intrange is a linter to find places where for loops could make use of an integer range. [fast: true, auto-fix: false]
66
+
- lll # Reports long lines
67
+
- loggercheck # Checks key value pairs for common logger libraries (kitlog,klog,logr,zap).
68
+
- maintidx # maintidx measures the maintainability index of each function.
69
+
- makezero # Finds slice declarations with non-zero initial length
70
+
- mirror # reports wrong mirror patterns of bytes/strings usage
71
+
- misspell # Finds commonly misspelled English words in comments
72
+
- musttag # enforce field tags in (un)marshaled structs [fast: false, auto-fix: false]
73
+
- nakedret # Finds naked returns in functions greater than a specified function length
74
+
- nestif # Reports deeply nested if statements
75
+
- nilerr # Finds the code that returns nil even if it checks that the error is not nil.
76
+
- nilnil # Checks that there is no simultaneous return of `nil` error and an invalid value.
77
+
- noctx # noctx finds sending http request without context.Context
78
+
- nolintlint # Reports ill-formed or insufficient nolint directives
79
+
- nosprintfhostport # Checks for misuse of Sprintf to construct a host with port in a URL.
80
+
- prealloc # Finds slice declarations that could potentially be pre-allocated
81
+
- predeclared # find code that shadows one of Go's predeclared identifiers
82
+
- promlinter # Check Prometheus metrics naming via promlint
83
+
- protogetter # Reports direct reads from proto message fields when getters should be used [fast: false, auto-fix: true]
84
+
- reassign # Checks that package variables are not reassigned
85
+
- revive # Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint.
86
+
- rowserrcheck # checks whether Err of rows is checked successfully
87
+
- sloglint # ensure consistent code style when using log/slog [fast: false, auto-fix: false]
88
+
- spancheck # Checks for mistakes with OpenTelemetry/Census spans. [fast: false, auto-fix: false]
89
+
- sqlclosecheck # Checks that sql.Rows and sql.Stmt are closed.
90
+
- staticcheck # It's a set of rules from staticcheck. It's not the same thing as the staticcheck binary. The author of staticcheck doesn't support or approve the use of staticcheck as a library inside golangci-lint.
91
+
- stylecheck # Stylecheck is a replacement for golint
92
+
- tagalign # check that struct tags are well aligned
93
+
- tagliatelle # Checks the struct tags.
94
+
- tenv # tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17
95
+
- testableexamples # linter checks if examples are testable (have an expected output)
96
+
- thelper # thelper detects Go test helpers without t.Helper() call and checks the consistency of test helpers
97
+
- tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes
98
+
- unconvert # Remove unnecessary type conversions
99
+
- unparam # Reports unused function parameters
100
+
- unused # Checks Go code for unused constants, variables, functions and types
101
+
- usestdlibvars # A linter that detect the possibility to use variables/constants from the Go standard library
102
+
- varnamelen # checks that the length of a variable's name matches its scope
0 commit comments