- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: true, auto-fix:false]
- gosimple # Linter for Go source code that specializes in simplifying a code [fast: true, auto-fix:false]
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: true, auto-fix:false]
- ineffassign # Detects when assignments to existing variables are not used [fast: true, auto-fix:false]
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: true, auto-fix:false]
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code [fast: true, auto-fix:false]
- unused # Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix:false]
- bodyclose # checks whether HTTP response body is closed successfully [fast: true, auto-fix:false]
- gochecknoglobals # Checks that no globals are present in Go code [fast: true, auto-fix:false]
- gochecknoinits # Checks that no init functions are present in Go code [fast: true, auto-fix:false]
- goconst # Finds repeated strings that could be replaced by a constant [fast: true, auto-fix:false]
- gocritic # The most opinionated Go source code linter [fast: true, auto-fix:false]
- gocyclo # Computes and checks the cyclomatic complexity of functions [fast: true, auto-fix:false]
- godox # Tool for detection of FIXME, TODO and other comment keywords [fast: true, auto-fix:false]
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix:true]
- goimports # Goimports does everything that gofmt does. Additionally it checks unused imports [fast: true, auto-fix:true]
- exportloopref # checks for pointers to enclosing loop variables [fast: false, auto-fix:false]
- forcetypeassert # finds forced type assertions [fast: true, auto-fix:false]
- godot # Check if comments end in a period [fast: true, auto-fix:true]
- goheader # Checks is file header matches to pattern [fast: true, auto-fix:false]
- 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. [fast: true, auto-fix:false]
- goprintffuncname # Checks that printf-like functions are named with `f` at the end [fast: true, auto-fix:false]
# - cyclop # checks function and package cyclomatic complexity [fast: false, auto-fix: false]
# - errorlint # go-errorlint is a source code linter for Go software that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false]
# - exhaustivestruct # Checks if all struct's fields are initialized [fast: false, auto-fix: false]
# - structcheck # Finds unused struct fields [fast: true, auto-fix: false] deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
# - deadcode # Finds unused code [fast: true, auto-fix: false] deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
# - varcheck # Finds unused global variables and constants [fast: true, auto-fix: false] deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.