-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
92 lines (86 loc) · 2.4 KB
/
.golangci.yml
File metadata and controls
92 lines (86 loc) · 2.4 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
Makefilelinters-settings:
golint:
min-confidence: 0
gocyclo:
min-complexity: 25
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 3
misspell:
locale: UK
ignore-words:
- serialized # serialized is written with 'z' in the Nedap urls
- color # color is written like that in responses from Nedap APIs
- customized # customized is written like that in Nedap OpenAPI specs
- organization # organization is written like that in Nedap OpenAPI specs
- center # one of the libraries that we use have a word center
gosec:
config:
G101:
pattern: "(?i)passwd|pass|password|pwd|secret|token|apiKey|bearer|cred" # Default gosec pattern is used here, excluding `pw` match, because of false positives on variables with names like `nedaPWebhook` (https://github.com/securego/gosec/blob/2a4064d45d18fb7f192281f10dcff762629dca2c/rules/hardcoded_credentials.go#L120)
ignore_entropy: false
entropy_threshold: "80.0"
per_char_threshold: "3.0"
truncate: "16"
lll:
line-length: 100
goimports:
local-prefixes: github.com/golangci/golangci-lint
gocritic:
enabled-tags:
- performance
- style
- diagnostic
disabled-checks:
- wrapperFunc
- commentFormatting # https://github.com/go-critic/go-critic/issues/755
revive:
ignore-generated-header: true
linters:
disable-all: true
enable:
- errcheck
- govet
- gocyclo
- varcheck
- structcheck
- ineffassign
- unconvert
- goconst
- gosimple
- staticcheck
- gosec
- tparallel
- nakedret
- gofmt
- gocognit
- godot
- misspell
- noctx
- nolintlint
- goimports
- revive
run:
deadline: 10m
skip-dirs:
- ".*\\testdata"
- ".*proto"
skip-files:
- ".*pb\\.go"
- ".*pb\\.gw\\.go"
- assets.go
output:
# colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number"
# format: json
# print lines of code with issue, default is true
print-issued-lines: true
# print linter name in the end of issue text, default is true
print-linter-name: true
# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.43.x # use fixed version to not introduce new linters unexpectedly
prepare:
- echo "here I can run custom commands, but no preparation needed"