-
Notifications
You must be signed in to change notification settings - Fork 10
/
.golangci.yaml
73 lines (71 loc) · 1.39 KB
/
.golangci.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
run:
timeout: 10m
tests: true
modules-download-mode: readonly
skip-dirs:
- api
skip-files:
- ".*\\.pb\\.go$"
go: '1.20'
linters-settings:
goconst:
min-len: 2
min-occurrences: 5
gocyclo:
min-complexity: 20
goimports:
local-prefixes: github.com/toomanysource/atreus
gomnd:
checks:
- argument
- case
- condition
- operation
- return
- assign
ignored-numbers:
- '0666'
- '0755'
- '42'
revive:
rules:
- name: blank-imports
- name: context-as-argument
- name: context-keys-type
- name: dot-imports
- name: empty-block
- name: error-naming
- name: error-return
- name: error-strings
- name: errorf
- name: if-return
- name: increment-decrement
- name: indent-error-flow
- name: range
- name: range-val-in-closure
- name: range-val-address
- name: receiver-naming
- name: redefines-builtin-id
- name: string-of-int
- name: time-equal
- name: time-naming
- name: superfluous-else
- name: unexported-return
- name: unreachable-code
linters:
disable-all: true
enable:
- bodyclose
- gofumpt
- goconst
- gocyclo
- govet
- gosimple
- goimports
- gomnd
- ineffassign
- rowserrcheck
- revive
- staticcheck
- unconvert
- unused