-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yml
29 lines (27 loc) · 1.9 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
27
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
- structcheck # Finds unused struct fields
- varcheck # Finds unused global variables and constants
- ineffassign # Detects when assignments to existing variables are not used
- deadcode # Finds unused code
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
- bodyclose # checks whether HTTP response body is closed successfully
- golint # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes
- 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
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
- 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