-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.golangci.yaml
46 lines (45 loc) · 1.07 KB
/
.golangci.yaml
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
# SPDX-FileCopyrightText: 2022 Red Hat, Inc. <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
---
run:
build-tags:
- codeanalysis
linters:
enable-all: true
disable:
# not neccessary right now
- depguard
# Deprecated
- golint
- interfacer
- maligned
- scopelint
# Only meant to be applied selectively.
- exhaustruct
- exhaustivestruct
# Promotes use of trivially shortened statements rather than
# lower complexity functions.
- funlen
# Standard import ordering is fine for now.
- gci
# Globals still in use for singleton-esque objects.
- gochecknoglobals
# False reports.
- ifshort
- nilerr
# Interface returns are currently used to wrap chained methods
# methods from the 'ocm-sdk'.
- ireturn
# Incorrectly reports '_' prefixed package globals
- nosnakecase
# Does not support map[string]testcase style subtests.
- paralleltest
# Ineffective for foreign schemas
- tagliatelle
# Tests cannot be blackboxed.
- testpackage
# Annoying
- varnamelen
# Errors are propagated back to commands.
- wrapcheck