Debian Codegraph @

.golangci.yml

raw symbols SCIP
1 version: "2"
2 run:
3 modules-download-mode: vendor
4 linters:
5 enable:
6 - contextcheck
7 - durationcheck
8 - forbidigo
9 - ginkgolinter
10 - gocritic
11 - misspell
12 - nonamedreturns
13 - predeclared
14 - revive
15 - unconvert
16 - unparam
17 - wastedassign
18 disable:
19 - errcheck
20 settings:
21 forbidigo:
22 forbid:
23 # Copied from https://github.com/moby/moby/pull/48407
24 - pattern: ^netlink\.(Handle\.)?(AddrList|BridgeVlanList|ChainList|ClassList|ConntrackTableList|ConntrackDeleteFilter$|ConntrackDeleteFilters|DevLinkGetDeviceList|DevLinkGetAllPortList|DevlinkGetDeviceParams|FilterList|FouList|GenlFamilyList|GTPPDPList|LinkByName|LinkByAlias|LinkList|LinkSubscribeWithOptions|NeighList$|NeighProxyList|NeighListExecute|NeighSubscribeWithOptions|LinkGetProtinfo|QdiscList|RdmaLinkList|RdmaLinkByName|RdmaLinkDel|RouteList|RouteListFilteredIter|RuleListFiltered$|RouteSubscribeWithOptions|RuleList$|RuleListFiltered|SocketGet|SocketDiagTCPInfo|SocketDiagTCP|SocketDiagUDPInfo|SocketDiagUDP|UnixSocketDiagInfo|UnixSocketDiag|VDPAGetDevConfigList|VDPAGetDevList|VDPAGetMGMTDevList|XfrmPolicyList|XfrmStateList)
25 pkg: ^github.com/vishvananda/netlink$
26 msg: Use internal netlinksafe package for EINTR handling.
27 analyze-types: true
28 staticcheck:
29 checks:
30 - all
31 - '-QF1008' # nested struct reference
32 - '-ST1005' # capitalized error strings
33 exclusions:
34 generated: lax
35 presets:
36 - comments
37 - common-false-positives
38 - legacy
39 - std-error-handling
40 rules:
41 - linters:
42 - revive
43 - staticcheck
44 text: use ALL_CAPS in Go names; use CamelCase
45 - linters:
46 - revive
47 text: ' and that stutters;'
48 - linters:
49 - revive
50 text: "var-naming: avoid meaningless package names"
51 - path: (.+)_test\.go
52 text: 'dot-imports: should not use dot imports'
53 - path: (.+)_test\.go
54 text: "ginkgo-linter: wrong comparison assertion. Consider using (.+)BeZero(.+)"
55 paths:
56 - third_party$
57 - builtin$
58 - examples$
59 formatters:
60 enable:
61 - gci
62 - gofumpt
63 settings:
64 gci:
65 sections:
66 - standard
67 - default
68 - prefix(github.com/containernetworking)
69 exclusions:
70 generated: lax
71 paths:
72 - third_party$
73 - builtin$
74 - examples$