-
Notifications
You must be signed in to change notification settings - Fork 18
/
.golangci.yaml
100 lines (100 loc) · 3.11 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
93
94
95
96
97
98
99
100
run:
timeout: 5m
linters:
enable-all: true
disable:
- cyclop
- wsl
- godox
- gochecknoglobals
- ireturn
- nlreturn
- testpackage
- paralleltest
- exhaustruct
- gocognit
- gochecknoinits
- gocyclo
- funlen
- maintidx
- musttag
- err113
- testifylint
- fatcontext
- gomoddirectives
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"
- "github.com/expr-lang/expr"
- "github.com/jackc/pgx/v5/pgproto3"
- "github.com/cybercyst/go-scaffold/pkg/scaffold"
- "golang.org/x/text/cases"
- "golang.org/x/text/language"
- "github.com/redis/go-redis/v9"
- "github.com/spaolacci/murmur3"
- "github.com/testcontainers/testcontainers-go"
- "github.com/stretchr/testify/require"
- "github.com/docker/go-connections/nat"
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"
- "github.com/spf13/cast"
- "github.com/jackc/pgx/v5/pgproto3"
- "github.com/testcontainers/testcontainers-go"
- "github.com/redis/go-redis/v9"
- "github.com/docker/go-connections/nat"
- "github.com/codingsince1985/checksum"
tagalign:
align: false
sort: false
order:
- json
- jsonschema