-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy path.golangci.yaml
More file actions
110 lines (110 loc) · 2.64 KB
/
.golangci.yaml
File metadata and controls
110 lines (110 loc) · 2.64 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
108
109
110
version: "2"
run:
modules-download-mode: readonly
allow-parallel-runners: true
linters:
default: all
disable:
- dupl
- exhaustruct
- forbidigo
- gochecknoglobals
- gochecknoinits
- mnd
- testpackage
- usetesting
- noinlineerr
- wsl
settings:
depguard:
rules:
main:
files:
- $all
- '!$test'
allow:
- $gostd
- github.com/gocarina/gocsv
- github.com/hashicorp/go-multierror
- github.com/mattn/go-isatty
- github.com/muesli/mango-cobra
- github.com/muesli/roff
- github.com/nwidger/jsoncolor
- github.com/oklog/ulid/v2
- github.com/openfga/api
- github.com/openfga/cli
- github.com/openfga/go-sdk
- github.com/openfga/language
- github.com/openfga/openfga
- github.com/rung/go-safecast
- github.com/schollz/progressbar/v3
- github.com/spf13/cobra
- github.com/spf13/pflag
- github.com/spf13/viper
- golang.org/x/time/rate
- google.golang.org/protobuf/encoding/protojson
- google.golang.org/protobuf/types/known/structpb
- gopkg.in/yaml.v3
test:
files:
- $test
allow:
- $gostd
- github.com/golang/mock/gomock
- github.com/openfga/api/proto
- github.com/openfga/cli
- github.com/openfga/go-sdk
- github.com/openfga/openfga
- github.com/stretchr
- go.uber.org/mock/gomock
funlen:
lines: 120
statements: 80
tagliatelle:
case:
rules:
json: snake
use-field-name: true
wsl_v5:
allow-first-in-block: true
allow-whole-block: false
branch-max-lines: 2
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- lll
path: cmd/tuple/write(.*).go
- linters:
- err113
- funlen
- lll
path: _test.go
- linters:
- revive
text: "avoid package names that conflict with Go standard library package names"
path: internal/slices
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- gofumpt
- goimports
settings:
goimports:
local-prefixes:
- github.com/openfga/cli
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$