forked from k0sproject/k0s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
45 lines (41 loc) · 1.23 KB
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# options for analysis running
run:
timeout: 8m
build-tags:
- hack
skip-dirs-use-default: false
skip-files:
- "zz_*"
tests: true
modules-download-mode: readonly
allow-parallel-runners: true
linters:
enable:
- depguard # Checks if package imports are in a list of acceptable packages
- gofmt # Checks whether code was gofmt-ed
- goheader # Checks is file headers matche a given pattern
- revive # Stricter drop-in replacement for golint
linters-settings:
depguard:
packages:
- gopkg.in/yaml*
golint:
min-confidence: 0
goheader:
template-path: .go-header.txt
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
# https://github.com/denis-tingaikin/go-header/issues/18
# This means that the header checks are ineffective for all files with build tags.
- source: "^//go:build"
linters:
- goheader
# Ignore deprecations: They shouldn't break the CI. If this were the case,
# it would be pointless to have them. There's no way in reporting them as
# warnings without having a non-zero exit code.
# https://github.com/golangci/golangci-lint/pull/3184#issuecomment-1235438429
- linters:
- staticcheck
text: "^SA1019:"