go-moysklad
/
.golangci.yml
48 строк · 1.4 Кб
1run:
2# The default concurrency value is the number of available CPU.
3concurrency: 4
4# Timeout for analysis, e.g. 30s, 5m.
5# Default: 1m
6timeout: 5m
7# Exit code when at least one issue was found.
8# Default: 1
9issues-exit-code: 2
10# Include test files or not.
11# Default: true
12tests: false
13# List of build tags, all linters use it.
14# Default: [].
15build-tags: []
16# Allow multiple parallel golangci-lint instances running.
17# If false (default) - golangci-lint acquires file lock on start.
18allow-parallel-runners: false
19# If set we pass it to "go list -mod={option}". From "go help modules":
20# If invoked with -mod=readonly, the go command is disallowed from the implicit
21# automatic updating of go.mod described above. Instead, it fails when any changes
22# to go.mod are needed. This setting is most useful to check that go.mod does
23# not need updates, such as in a continuous integration and testing system.
24# If invoked with -mod=vendor, the go command assumes that the vendor
25# directory holds the correct copies of dependencies and ignores
26# the dependency descriptions in go.mod.
27#
28# Allowed values: readonly|vendor|mod
29# By default, it isn't set.
30modules-download-mode: readonly
31
32issues:
33exclude-use-default: true
34
35output:
36sort-results: true
37
38linters:
39disable-all: true
40enable:
41- govet
42
43linters-settings:
44govet:
45enable:
46- fieldalignment
47fieldalignment:
48suggest-new: true