forked from kubernetes-sigs/gateway-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
69 lines (66 loc) · 1.3 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
run:
timeout: 10m
issues-exit-code: 1
max-issues-per-linter: 0
max-same-issues: 0
tests: true
skip-dirs-use-default: true
modules-download-mode: readonly
allow-parallel-runners: false
linters:
fast: false
enable:
- errcheck
- exportloopref
- gocritic
- gofumpt
- goimports
- gomodguard
- gosec
- govet
- misspell
- revive
- unconvert
- unparam
- unused
- whitespace
disable:
- scopelint
disable-all: false
presets:
- bugs
- unused
# all available settings of specific linters
linters-settings:
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
goimports:
local-prefixes: sigs.k8s.io/gateway-api
golint:
min-confidence: 0.9
govet:
# report about shadowed variables
check-shadowing: true
misspell:
locale: US
ignore-words: []
gomodguard:
blocked:
# List of blocked modules.
modules:
- io/ioutil:
recommendations:
- io
- os
reason: "Deprecation of package ioutil in Go 1.16."
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl
exclude:
- Using the variable on range scope `tc` in function literal