-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.golangci.yml
More file actions
28 lines (24 loc) · 875 Bytes
/
.golangci.yml
File metadata and controls
28 lines (24 loc) · 875 Bytes
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
version: 2
run:
skip-dirs:
- vendor
skip-files:
- ".*\\_test.go$"
linters:
# refer https://golangci-lint.run/usage/linters/
disable-all: true
enable:
# errcheck is a program for checking for unchecked errors in Go code. These unchecked errors can be critical bugs in some cases
- errcheck
# Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- govet
# Detects when assignments to existing variables are not used
- ineffassign
# It's the set of rules from staticcheck (includes gosimple)
- staticcheck
# Checks Go code for unused constants, variables, functions and types
- unused
formatters:
enable:
# checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
- gofmt