-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
98 lines (80 loc) · 2.13 KB
/
.golangci.yaml
File metadata and controls
98 lines (80 loc) · 2.13 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# SPDX-FileCopyrightText: 2026 The DMorph contributors.
# SPDX-License-Identifier: MPL-2.0
# Configuration file for golangci-lint
# See https://golangci-lint.run/usage/configuration/ for more information
version: "2"
run:
timeout: 5m
tests: true
linters:
default: all
disable:
- exhaustruct
- noinlineerr
- nonamedreturns
- wsl
exclusions:
warn-unused: true
rules:
- path: _test\.go
linters:
- cyclop
- dupl
- dupword
- err113
- funlen
- gocognit
- maintidx
- nestif
- path: examples/
linters:
- err113
settings:
cyclop:
max-complexity: 25
depguard:
rules:
main:
files:
- $all
- "!$test"
- "!**/examples/**/*"
allow:
- $gostd
test:
files:
- $test
- "**/examples/**/*"
allow:
- $gostd
- github.com/stretchr/testify/assert
- github.com/stretchr/testify/require
- github.com/AlphaOne1/dmorph
- modernc.org/sqlite
exhaustive:
default-signifies-exhaustive: true
mnd:
ignored-numbers:
- "2"
perfsprint:
errorf: false
testpackage:
skip-regexp: internal_test\.go
varnamelen:
max-distance: 10
ignore-names:
- ctx
- db
- err
- tx
whitespace:
multi-if: true
multi-func: true
wsl_v5:
disable:
- decl
- err
- leading-whitespace
issues:
max-issues-per-linter: 0
max-same-issues: 0