-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yml
28 lines (26 loc) · 1.57 KB
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
run:
go: '1.18'
linters:
enable:
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks
- unused # Checks Go code for unused constants, variables, functions and types
- gosimple # Linter for Go source code that specializes in simplifying a code
- ineffassign # Detects when assignments to existing variables are not used
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
- bodyclose # checks whether HTTP response body is closed successfully
- gosec # Inspects source code for security problems
- unconvert # Remove unnecessary type conversions
- dupl # Tool for code clone detection
- goconst # Finds repeated strings that could be replaced by a constant
- gocyclo # Computes and checks the cyclomatic complexity of functions
- misspell # Finds commonly misspelled English words in comments
- lll # Reports long lines
- unparam # Reports unused function parameters
- prealloc # Finds slice declarations that could potentially be preallocated
- gocritic # The most opinionated Go source code linter
- whitespace # Tool for detection of leading and trailing whitespace
- exportloopref # checks for pointers to enclosing loop variables
- unused
- revive