-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.golangci.yml
More file actions
92 lines (92 loc) · 2.91 KB
/
Copy path.golangci.yml
File metadata and controls
92 lines (92 loc) · 2.91 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
# yamllint disable rule:line-length
---
version: "2"
linters:
default: all
disable:
# err113 is disabled as it does not make any sense to use wrapped static
# errors as it contains superfluous escaped double quotes.
- err113
# exhaustruct is disabled as there are scenarios in this code base where a
# some keys of a struct should be empty while testing.
- exhaustruct
# gochecknoglobals is disabled as there are global errors and component
# test variables.
- gochecknoglobals
# testpackage is disabled as it is a bad practice to make methods public to
# be able to test them.
- testpackage
# The linter 'wsl' is deprecated (since v2.2.0) due to: new major version.
# Replaced by wsl_v5.
- wsl
settings:
depguard:
rules:
main:
files:
- "!**/*_a _file.go"
allow:
- $gostd
- github.com/go-openapi/runtime
- github.com/go-openapi/runtime/client
- github.com/go-openapi/strfmt
- github.com/go-playground/validator/v10
- github.com/golang-jwt/jwt/v5
- github.com/google/uuid
- github.com/hashicorp/go-getter
- github.com/hashicorp/go-retryablehttp
- github.com/jackc/pgx/v5
- github.com/labstack/echo/v4
- github.com/labstack/echo/v4/middleware
- github.com/lib/pq
- github.com/mholt/archives
- github.com/mitchellh/go-homedir
- github.com/ory/dockertest/v3
- github.com/ory/dockertest/v3/docker
- github.com/signintech/gopdf
- github.com/sirupsen/logrus
- github.com/stretchr/testify/assert
- github.com/stretchr/testify/mock
- github.com/stretchr/testify/require
- github.com/stretchr/testify/suite
- github.com/swaggo/echo-swagger
- github.com/swaggo/swag
- golang.org/x/sys/unix
- golang.org/x/time/rate
- gopkg.in/yaml.v2
deny:
- pkg: log
desc: Use 'log "github.com/sirupsen/logrus"' instead
- pkg: github.com/pkg/errors
desc: Should be replaced by standard lib errors package
- pkg: github.com/anchore/go-homedir
desc: Must be replaced by 'github.com/mitchellh/go-homedir'
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- internal/app/mcvs-scanner-cli/application/swagger
- third_party$
- builtin$
- examples$
rules:
- linters:
- funlen
path: _test\.go
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- internal/app/mcvs-scanner-cli/application/swagger
- third_party$
- builtin$
- examples$