-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
38 lines (34 loc) · 1.5 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
28
29
30
31
32
33
34
35
36
37
run:
timeout: 5m
modules-download-mode: readonly
linters-settings:
gofmt:
simplify: true
govet:
enable-all: true
disable:
- fieldalignment
- shadow
linters:
disable-all: true
enable:
- typecheck # This is to improve error reporting
- gofmt # Checks whether code was gofmt-ed
- revive # Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint
- gosimple # Linter for Go source code that specializes in simplifying a code
- govet # Examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- ineffassign # Detects when assignments to existing variables are not used
- unconvert # Removes unnecessary type conversions
- unused # Checks Go code for unused constants, variables, functions and types
- exportloopref # Checks for pointers to enclosing loop variables
- errcheck # Detects unchecked errors
- misspell # Finds commonly misspelled English words
- goimports # Check import statements are formatted according to the 'goimports' command
- makezero # Finds slice declarations with non-zero initial length
- whitespace # Whitespace is a linter that checks for unnecessary newlines at the start and end of functions, if, for, etc
- staticcheck # It's a set of rules from staticcheck
issues:
exclude-dirs:
- webapp
- standalone
- lt