-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
37 lines (30 loc) · 804 Bytes
/
Copy path.golangci.yaml
File metadata and controls
37 lines (30 loc) · 804 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
29
30
31
32
33
34
35
36
37
# This file contains all available configuration options
# with their default values.
# options for analysis running
run:
# default concurrency is a available CPU number
concurrency: 4
# timeout for analysis, e.g. 30s, 5m, default is 1m
deadline: 10m
# exit code when at least one issue was found, default is 1
issues-exit-code: 1
# include test files or not, default is true
tests: true
# all available settings of specific linters
linters-settings:
dupl:
# tokens count to trigger issue, 150 by default
threshold: 200
linters:
enable-all: true
disable:
# - goerr113
# - errcheck
# - godox
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- path: \_test.go
linters:
- gomnd
- gosec