Debian Codegraph @

.golangci.yml

raw symbols SCIP
1 run:
2 timeout: 5m
3 linters:
4 enable-all: true
5 disable:
6 - cyclop
7 - deadcode
8 - dupword
9 - errname
10 - exhaustruct
11 - exhaustivestruct
12 - forbidigo
13 - forcetypeassert
14 - funlen
15 - gochecknoglobals
16 - gochecknoinits
17 - goconst
18 - godox
19 - goerr113
20 - golint
21 - gomnd
22 - gosec
23 - ifshort
24 - inamedparam
25 - interfacer
26 - ireturn
27 - lll
28 - maligned
29 - nlreturn
30 - nonamedreturns
31 - nosnakecase
32 - paralleltest
33 - prealloc
34 - perfsprint
35 - rowserrcheck
36 - scopelint
37 - structcheck
38 - tagliatelle
39 - testpackage
40 - unparam
41 - varcheck
42 - varnamelen
43 - wastedassign
44 - wrapcheck
45 - wsl
46 linters-settings:
47 depguard:
48 rules:
49 main:
50 allow:
51 - github.com/mmcloughlin/avo
52 - golang.org/x/
53 - $gostd
54 gci:
55 sections:
56 - standard
57 - default
58 - prefix(github.com/mmcloughlin/avo)
59 revive:
60 enable-all-rules: true
61 rules:
62 - name: add-constant
63 disabled: true
64 - name: confusing-results
65 disabled: true
66 - name: cognitive-complexity
67 disabled: true
68 - name: cyclomatic
69 disabled: true
70 - name: deep-exit
71 disabled: true
72 - name: empty-block
73 disabled: true
74 - name: flag-parameter
75 disabled: true
76 - name: function-length
77 disabled: true
78 - name: if-return
79 disabled: true
80 - name: line-length-limit
81 disabled: true
82 - name: max-public-structs
83 disabled: true
84 - name: modifies-value-receiver
85 disabled: true
86 - name: unexported-naming
87 disabled: true
88 - name: unhandled-error
89 arguments:
90 - 'fmt\.(P|Fp)rint(ln|f)?'
91 - 'text/tabwriter\.Writer\.Flush'
92 - name: unused-parameter
93 disabled: true
94 - name: unused-receiver
95 disabled: true
96 issues:
97 exclude-use-default: false
98 exclude:
99 # errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
100 - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
101 # gocritic: https://github.com/go-critic/go-critic/issues/762
102 - " with `(len|cap|real|imag)`"
103 # We want to allow all caps in certain cases.
104 - "ALL_CAPS in Go names"