-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
31 lines (28 loc) · 1.05 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
run:
timeout: 5m
modules-download-mode: readonly
linters-settings:
gofmt:
simplify: true
govet:
enable-all: true
disable:
- fieldalignment
- shadow
linters:
disable-all: true
enable:
- 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
- copyloopvar # Checks for pointers to enclosing loop variables
- errcheck # Detects unchecked errors.
issues:
exclude-rules:
- linters:
- unused
text: "getConfiguration"