-
Notifications
You must be signed in to change notification settings - Fork 9
/
.golangci.yml
55 lines (52 loc) · 1.13 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
51
52
53
54
# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
# Use the fixed version to not introduce new linters unexpectedly.
# NOTE: Update the golangci-lint version in sync at build/images/Dockerfile and .golangci.yml.
golangci-lint-version: 1.54.0
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
deadline: 20m
skip-files:
- zz_generated.deepcopy.go
linters:
disable-all: true
enable:
# Enabled By Default Linters
- gofmt
- govet
- errcheck
- staticcheck
- unused
- gosimple
- ineffassign
- typecheck
# Enabled for project Linters
- revive
- lll
- misspell
- unparam
- whitespace
# godot enable back once the repo is cleaned up
linters-settings:
funlen:
lines: 100
statements: 50
goconst:
min-len: 3
min-occurrences: 2
golint:
min-confidence: 0
lll:
line-length: 140
tab-width: 1
misspell:
locale: US
revive:
ignore-generated-header: true
severity: warning
rules:
- name: atomic
- name: line-length-limit
severity: error
arguments: [330]