-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.golangci.yaml
63 lines (60 loc) · 1.13 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
# Copyright (c) 2023, Intel Corporation.
# SPDX-License-Identifier: BSD-3-Clause
run:
skip-dirs:
- "demo"
- "bin"
- "examples.*"
linters:
fast: false
enable:
- revive
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- asciicheck
- whitespace
- wastedassign
- unparam
- unconvert
- tagliatelle
- stylecheck
- reassign
- predeclared
- prealloc
- misspell
- makezero
- exhaustive
- lll
issues:
exclude-use-default: false
linters-settings:
errcheck:
check-type-assertions: true
ignore: fmt:.*,Close
stylecheck:
checks: ["all"]
revive:
confidence: 0.8
severity: error
rules:
- name: package-comments
severity: "error"
- name: max-public-structs
severity: "error"
arguments: [6]
- name: exported
severity: error
arguments:
- "checkPrivateReceivers"
- "sayRepetitiveInsteadOfStutters"
exhaustive:
default-signifies-exhaustive: true
tagliatelle:
case:
use-field-name: true
rules:
json: goCamel