Debian Codegraph @

.golangci.yml

raw
1 version: "2"
2 run:
3 concurrency: 4
4 modules-download-mode: readonly
5 issues-exit-code: 1
6 tests: true
7 output:
8 formats:
9 text:
10 path: stdout
11 print-linter-name: true
12 print-issued-lines: true
13 linters:
14 default: none
15 enable:
16 - forbidigo
17 - govet
18 - ineffassign
19 - misspell
20 - staticcheck
21 - unused
22 settings:
23 errcheck:
24 check-type-assertions: false
25 check-blank: false
26 forbidigo:
27 forbid:
28 - pattern: ^fmt\.Print(f|ln)?$
29 govet:
30 settings:
31 printf:
32 funcs:
33 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
34 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
35 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
36 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
37 misspell:
38 locale: US
39 staticcheck:
40 checks:
41 - all
42 - -QF*
43 - -ST1003
44 - -ST1016
45 - -SA1019
46 exclusions:
47 generated: lax
48 presets:
49 - comments
50 - common-false-positives
51 - legacy
52 - std-error-handling
53 rules:
54 - linters:
55 - forbidigo
56 path: main.go
57 - linters:
58 - forbidigo
59 source: "nats-server: v%s"
60 - linters:
61 - forbidigo
62 path: server/opts.go
63 - linters:
64 - forbidigo
65 path: _test.go
66 paths:
67 - .github
68 - doc
69 - docker
70 - logos
71 - scripts
72 - util
73 - third_party$
74 - builtin$
75 - examples$
76 formatters:
77 enable:
78 - goimports
79 exclusions:
80 generated: lax
81 paths:
82 - .github
83 - doc
84 - docker
85 - logos
86 - scripts
87 - util
88 - third_party$
89 - builtin$
90 - examples$