forked from DataDog/chaos-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
55 lines (54 loc) · 1.26 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
# Unless explicitly stated otherwise all files in this repository are licensed
# under the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2021 Datadog, Inc.
run:
skip-files:
- api/v1beta1/zz_generated.deepcopy.go
- ".*_test.go"
linters:
enable:
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- bodyclose
- depguard
- dogsled
- goconst
- godox
- gofmt
- goimports
- golint
- goprintffuncname
- gosec
- interfacer
- maligned
- misspell
- nakedret
- prealloc
- rowserrcheck
- stylecheck
- unconvert
- unparam
- whitespace
- wsl
- gocritic
issues:
exclude-use-default: false
exclude:
# gosec
- Subprocess launch(ed with variable|ing should be audited)
- Expect file permissions to be 0600 or less
- Blacklisted import `crypto/md5`
- Use of weak cryptographic primitive
# stylecheck
- at least one file in a package should have a package comment
# golint
- (comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form)