forked from kubernetes-sigs/cluster-api-provider-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
49 lines (47 loc) · 1.19 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
linters:
enable-all: true
disable:
- dupl
- errorlint
- exhaustivestruct
- funlen
- gochecknoglobals
- gochecknoinits
- gocognit
- godox
- goerr113
- gomnd
- interfacer
- lll
- maligned
- nlreturn
- whitespace
- wrapcheck
- wsl
# Run with --fast=false for more extensive checks
fast: true
linters-settings:
cyclop:
# TODO(sbuerin) fix remaining findings and set to 20 afterwards
max-complexity: 30
goimports:
local-prefixes: sigs.k8s.io/cluster-api-provider-openstack
nestif:
# minimal complexity of if statements to report, 5 by default
# TODO(sbuerin) fix remaining findings and set to 5 after:
# https://github.com/kubernetes-sigs/cluster-api-provider-openstack/pull/778
min-complexity: 13
issues:
max-same-issues: 0
max-per-linter: 0
# List of regexps of issue texts to exclude, empty list by default.
exclude:
- Using the variable on range scope `(tc)|(rt)|(tt)|(test)|(testcase)|(testCase)` in function literal
- "G108: Profiling endpoint is automatically exposed on /debug/pprof"
run:
timeout: 6m
build-tags:
- e2e
skip-files:
- "zz_generated.*\\.go$"
- ".*_mock\\.go"