-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.golangci.yml
More file actions
107 lines (104 loc) · 2.54 KB
/
.golangci.yml
File metadata and controls
107 lines (104 loc) · 2.54 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: "2"
linters:
default: none
enable:
- asciicheck
- bodyclose
- depguard
- dogsled
- dupl
- errcheck
- goconst
- gocritic
- gocyclo
- godot
- goheader
- gomodguard
- goprintffuncname
- gosec
- govet
- ineffassign
- misspell
- nakedret
- nestif
- nolintlint
- prealloc
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- unconvert
- unparam
- unused
- whitespace
settings:
depguard:
rules:
main:
files:
- $all
allow:
- $gostd
- golang.org/x/sys/unix
- golang.org/x/crypto/sha3
- golang.org/x/crypto/argon2
- github.com/oasisprotocol
- github.com/btcsuite/btcd
- github.com/adrg/xdg
- github.com/AlecAivazis/survey/v2
- github.com/ethereum/go-ethereum
- github.com/miguelmota/go-ethereum-hdwallet
- github.com/mitchellh/mapstructure
- github.com/olekukonko/tablewriter
- github.com/spf13/cobra
- github.com/spf13/pflag
- github.com/spf13/viper
- github.com/stretchr/testify
- github.com/tyler-smith/go-bip39
- github.com/zondax/ledger-go
- github.com/foxboron/go-uefi/authenticode
- golang.org/x/text
- gopkg.in/yaml.v3
- github.com/compose-spec/compose-go/v2
- github.com/github/go-spdx/v2
- github.com/opencontainers/image-spec/specs-go/v1
- oras.land/oras-go/v2
- github.com/wI2L/jsondiff
- github.com/google/uuid
- golang.org/x/net/idna
- golang.org/x/term
deny:
- pkg: github.com/pkg/errors
desc: Should be replaced by standard lib errors package
- pkg: github.com/fxamacker/cbor/v2
desc: Use oasis-core/go/common/cbor instead
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- revive
path: "/common/"
text: "var-naming: avoid meaningless package names"
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofumpt
- goimports
settings:
goimports:
local-prefixes:
- github.com/oasisprotocol/cli
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$