-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy path.golangci.yaml
More file actions
63 lines (62 loc) · 1.48 KB
/
.golangci.yaml
File metadata and controls
63 lines (62 loc) · 1.48 KB
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
# Copyright (c) Mondoo, Inc.
# SPDX-License-Identifier: BUSL-1.1
version: "2"
run:
modules-download-mode: readonly
linters:
default: none
enable:
- depguard
settings:
depguard:
rules:
denied-packages:
deny:
- pkg: gotest.tools
desc: Should be replaced with "github.com/stretchr/testify/assert"
- pkg: github.com/tj/assert
desc: Should be replaced with "github.com/stretchr/testify/assert"
- pkg: github.com/mitchellh/mapstructure
desc: no longer maintained; use github.com/go-viper/mapstructure/v2 v2.2.1 instead
prevent-viper-in-internal-packages:
files:
- $all
- '!$test'
- '!**/cmd/**'
- '!**/cli/**'
- '!**/local_scanner.go'
deny:
- pkg: github.com/spf13/viper
desc: viper should only be used in CLI packages (under cmd/ or cli/)
govet:
enable:
- structtag
- lostcancel
disable-all: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- .*\.pb\.go$
- .*\.lr\.go$
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
settings:
gofmt:
simplify: false
exclusions:
generated: lax
paths:
- .*\.pb\.go$
- .*\.lr\.go$
- third_party$
- builtin$
- examples$