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)
@@ -22,26 +19,21 @@ linters:
22
19
- 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.
23
20
- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`.
24
21
- 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.
25
-
- exportloopref # checks for pointers to enclosing loop variables
22
+
#- exportloopref # checks for pointers to enclosing loop variables
26
23
- forcetypeassert # finds forced type assertions
27
-
- gci # Gci control golang package import order and make it always deterministic.
28
24
- gocheckcompilerdirectives # Checks that go compiler directive comments (//go:) are valid.
29
25
- gocognit # Computes and checks the cognitive complexity of functions
30
26
- goconst # Finds repeated strings that could be replaced by a constant
31
27
- gocritic # The most opinionated Go source code linter
32
28
- gocyclo # Computes and checks the cyclomatic complexity of functions
33
29
- godox # Tool for detection of FIXME, TODO and other comment keywords
34
30
# - goerr113 # Golang linter to check the errors handling expressions
35
-
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
36
-
- gofumpt # Gofumpt checks whether code was gofumpt-ed.
37
31
- goheader # Checks is file header matches to pattern
38
-
- goimports # Goimports does everything that gofmt does. Additionally it checks unused imports
39
-
- gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod.
32
+
# - gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod.
40
33
- 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.
41
34
- goprintffuncname # Checks that printf-like functions are named with `f` at the end
42
35
- gosec # Inspects source code for security problems
43
36
- gosmopolitan # Report certain i18n/l10n anti-patterns in your Go codebase
44
-
- gosimple # Linter for Go source code that specializes in simplifying a code
45
37
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
46
38
- grouper # An analyzer to analyze expression groups
47
39
- importas # Enforces consistent import aliases
@@ -66,12 +58,9 @@ linters:
66
58
- sloglint # Ensure consistent code style when using log/slog
67
59
- spancheck # Checks for mistakes with OpenTelemetry/Census spans
68
60
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks
69
-
- stylecheck # Stylecheck is a replacement for golint
70
61
- tagliatelle # Checks the struct tags.
71
-
- tenv # tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17
72
62
- testifylint # Checks usage of github.com/stretchr/testify.
73
63
- tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes
74
-
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
75
64
- unconvert # Remove unnecessary type conversions
76
65
- unparam # Reports unused function parameters
77
66
- unused # Checks Go code for unused constants, variables, functions and types
@@ -90,7 +79,6 @@ linters:
90
79
- gochecknoglobals # Checks that no globals are present in Go code
91
80
- gochecknoinits # Checks that no init functions are present in Go code
92
81
- godot # Check if comments end in a period
93
-
- gomnd # An analyzer to detect magic numbers.
94
82
- inamedparam # Reports interfaces with unnamed method parameters.
95
83
- interfacebloat # A linter that checks the number of methods inside an interface
0 commit comments