-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgolangci.yml
50 lines (46 loc) · 1.04 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
38
39
40
41
42
43
44
45
46
47
48
49
50
run:
timeout: 5m
tests: true
# Include test files for analysis
build-tags:
- integration
linters:
disable-all: true
enable:
- gofmt
- govet
- revive # Modern replacement for golint
- gosimple
- staticcheck
- errcheck
- ineffassign
- unconvert
- misspell
- gosec
- bodyclose # Checks whether HTTP response bodies are closed
- gocyclo # Check function complexity
- goimports # Checks imports ordering
- unused # Checks for unused constants, variables, functions and types
linters-settings:
gocyclo:
# Minimal complexity of function to report
min-complexity: 15
revive:
rules:
- name: exported
arguments:
- "checkPrivateReceivers"
- "sayRepetitiveInsteadOf"
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- path: _test\.go
linters:
- gosec
- errcheck
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true