-
Notifications
You must be signed in to change notification settings - Fork 26
/
.golangci.yaml
76 lines (71 loc) · 1.76 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
run:
timeout: 3m
modules-download-mode: readonly
allow-parallel-runners: true
linters:
enable-all: true
disable:
- dupl #temporary
- exhaustruct
- gochecknoinits
- forbidigo
- gochecknoglobals
# deprecated
- testpackage
- gci
- gomnd
linters-settings:
depguard:
rules:
main:
files:
- $all
- "!$test"
allow:
- $gostd
- 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/spf13/cobra
- github.com/spf13/pflag
- github.com/spf13/viper
- google.golang.org/protobuf/encoding/protojson
- google.golang.org/protobuf/types/known/structpb
- gopkg.in/yaml.v3
- github.com/hashicorp/go-multierror
- github.com/gocarina/gocsv
- github.com/schollz/progressbar/v3
test:
files:
- "$test"
allow:
- $gostd
- github.com/golang/mock/gomock
- github.com/openfga/cli
- github.com/openfga/go-sdk
- github.com/openfga/openfga
- github.com/stretchr
- github.com/openfga/api/proto
tagliatelle:
case:
use-field-name: true
rules:
json: snake
funlen:
lines: 120
statements: 80
goimports:
local-prefixes: "github.com/openfga/cli"
issues:
exclude-use-default: true
exclude-rules:
- path: "cmd/tuple/write(.*).go"
linters:
- lll