Debian Codegraph @

.golangci.yml

raw symbols SCIP
1 linters-settings:
2 govet:
3 check-shadowing: true
4 settings:
5 printf:
6 funcs:
7 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
8 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
9 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
10 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
11 golint:
12 min-confidence: 0
13 gocyclo:
14 min-complexity: 10
15 maligned:
16 suggest-new: true
17 dupl:
18 threshold: 100
19 goconst:
20 min-len: 2
21 min-occurrences: 2
22 depguard:
23 list-type: blacklist
24 packages:
25 # logging is allowed only by logutils.Log, logrus
26 # is allowed to use only in logutils package
27 - github.com/sirupsen/logrus
28 misspell:
29 locale: US
30 lll:
31 line-length: 140
32 goimports:
33 local-prefixes: github.com/golangci/golangci-lint
34 gocritic:
35 enabled-tags:
36 - performance
37 - style
38 - experimental
39 disabled-checks:
40 - wrapperFunc
41 - dupImport # https://github.com/go-critic/go-critic/issues/845
42
43 linters:
44 disable-all: true
45 enable:
46 - gofmt
47 - golint
48 - govet
49 - misspell
50 - ineffassign
51 - deadcode
52 - staticcheck
53 - unused
54 - structcheck
55 - gosimple
56
57 run:
58 skip-dirs:
59 - pkg
60
61 issues:
62 exclude:
63 - declaration of "err" shadows declaration at line
64 - should have a package comment, unless it's in another file for this package
65 - func `CLICommand.
66 - error strings should not be capitalized or end with punctuation or a newline
67 # golangci.com configuration
68 # https://github.com/golangci/golangci/wiki/Configuration
69 service:
70 golangci-lint-version: 1.19.x # use the fixed version to not introduce new linters unexpectedly
71 prepare:
72 - echo "here I can run custom commands, but no preparation needed for this repo"