Debian Codegraph @

.golangci.yml

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 version: "2"
2
3 run:
4 timeout: 5m
5
6 linters:
7 exclusions:
8 presets:
9 - std-error-handling
10 enable:
11 - gosec # Detects security problems.
12 # Keep all extras disabled for now to focus on the integer overflow problem.
13 # TODO: enable these and other good linters
14 - dogsled # Detects assignments with too many blank identifiers.
15 - errcheck
16 - errchkjson # Detects unsupported types passed to json encoding functions and reports if checks for the returned error can be omitted.
17 - exhaustive # Detects missing options in enum switch statements.
18 - gocyclo
19 - govet
20 - ineffassign
21 - makezero # Finds slice declarations with non-zero initial length.
22 - misspell # Detects commonly misspelled English words in comments.
23 - nakedret # Detects uses of naked returns.
24 - prealloc # Detects slice declarations that could potentially be pre-allocated.
25 - predeclared # Detects code that shadows one of Go's predeclared identifiers.
26 - reassign # Detects reassigning a top-level variable in another package.
27 - staticcheck
28 - thelper # Detects test helpers without t.Helper().
29 - tparallel # Detects inappropriate usage of t.Parallel().
30 - unconvert # Detects unnecessary type conversions.
31 - unused
32 - usestdlibvars # Detects the possibility to use variables/constants from the Go standard library.
33 - usetesting # Reports uses of functions with replacement inside the testing package.
34 settings:
35 govet:
36 disable:
37 - stdversion
38 gosec:
39 excludes:
40 - G404 # Weak random number generator used in tests.
41 - G304 # File inclusion