-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy path.golangci.yml
More file actions
68 lines (68 loc) · 1.87 KB
/
.golangci.yml
File metadata and controls
68 lines (68 loc) · 1.87 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
version: "2"
linters:
default: all
disable:
- depguard # Allow all package imports
- embeddedstructfieldcheck # Allow embedded fields in any position
- err113
- exhaustruct # Allow structures with uninitialized fields
- funcorder # Allow flexible function ordering within structs
- funlen # Allow long functions
- godoclint # Allow flexible godoc comment styles
- gochecknoglobals # Allow global variables
- gochecknoinits # Allow init function
- godox # Allow TODOs
- gomoddirectives # Allow replaces in go.mod
- inamedparam # Allow unnamed args
- ireturn # Allow returning with interfaces
- lll # Allow long lines
- noinlineerr # Allow inline error handling
- nolintlint # Allow nolint
- paralleltest # Allow missing t.Parallel() in tests
- revive # Allow flexible code style conventions
- perfsprint # Allow concat strings with fmt.Sprintf
- prealloc # Allow dynamically sized slices
- tagliatelle # Allow json(camel)
- testpackage # Allow not having a test package
- varnamelen # Allow short var names
- wsl # Deprecated
settings:
cyclop:
max-complexity: 15
goheader:
values:
regexp:
YEAR: 202[4-6]
template: |-
Copyright AGNTCY Contributors (https://github.com/agntcy)
SPDX-License-Identifier: Apache-2.0
gomoddirectives:
replace-allow-list: []
replace-local: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- dupl
path: types/adapters/record_oasfv.*\.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$