forked from gatewayd-io/gatewayd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
92 lines (92 loc) · 2.49 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
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
run:
timeout: 5m
linters:
enable-all: true
disable:
- cyclop
- wsl
- godox
- gochecknoglobals
- ireturn
- nlreturn
- testpackage
- paralleltest
- exhaustivestruct
- exhaustruct
- gocognit
- gochecknoinits
- gocyclo
- maligned
- funlen
- maintidx
- musttag
- nosnakecase
- goerr113
- ifshort
- deadcode
- interfacer
- scopelint
- structcheck
- varcheck
- golint
- testifylint
linters-settings:
depguard:
rules:
main:
files:
- $all
- "!$test"
allow:
- $gostd
- "github.com/gatewayd-io"
- "github.com/getsentry/sentry-go"
- "github.com/rs/zerolog"
- "github.com/grpc-ecosystem/grpc-gateway"
- "google.golang.org/grpc"
- "google.golang.org/protobuf"
- "github.com/knadh/koanf"
- "github.com/panjf2000/gnet/v2"
- "github.com/spf13/cobra"
- "github.com/spf13/cast"
- "github.com/invopop/jsonschema"
- "github.com/santhosh-tekuri/jsonschema/v5"
- "github.com/NYTimes/gziphandler"
- "github.com/go-co-op/gocron"
- "github.com/prometheus/client_golang/prometheus"
- "github.com/prometheus/client_model/go"
- "github.com/prometheus/common/expfmt"
- "github.com/hashicorp/go-hclog"
- "github.com/Masterminds/semver/v3"
- "github.com/hashicorp/go-plugin"
- "github.com/mitchellh/mapstructure"
- "github.com/google/go-cmp"
- "github.com/google/go-github/v53/github"
- "github.com/codingsince1985/checksum"
- "golang.org/x/exp/maps"
- "golang.org/x/exp/slices"
- "gopkg.in/yaml.v3"
- "github.com/zenizh/go-capturer"
- "gopkg.in/natefinch/lumberjack.v2"
test:
files:
- $test
allow:
- $gostd
- "github.com/gatewayd-io"
- "github.com/stretchr/testify"
- "github.com/rs/zerolog"
- "github.com/zenizh/go-capturer"
- "github.com/hashicorp/go-hclog"
- "github.com/prometheus/client_golang/prometheus"
- "github.com/prometheus/client_model/go"
- "github.com/prometheus/common/expfmt"
- "github.com/panjf2000/gnet/v2"
- "github.com/spf13/cobra"
- "github.com/knadh/koanf"
tagalign:
align: false
sort: false
order:
- json
- jsonschema