-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
56 lines (52 loc) · 1.21 KB
/
.golangci.yml
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
# Copyright (C) 2024, Chain4Travel AG. All rights reserved.
# See the file LICENSE for licensing terms.
# https://golangci-lint.run/usage/configuration/
run:
timeout: 5m
issues:
# Maximum count of issues with the same text. Set to 0 to disable. Default: 3.
max-same-issues: 0
exclude-dirs: camino-matrix-go
linters:
disable-all: true
enable:
- asciicheck
- bodyclose
# - cyclop TODO enable
- depguard
- errcheck
- errorlint
- copyloopvar
- goconst
- gocritic
- gofmt
- gofumpt
- goimports
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- noctx
- prealloc
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
- revive
linters-settings:
depguard:
rules:
packages:
deny:
- pkg: "io/ioutil"
desc: io/ioutil is deprecated. Use package io or os instead.
- pkg: "github.com/stretchr/testify/assert"
desc: github.com/stretchr/testify/require should be used instead.
- pkg: "github.com/golang/mock/gomock"
desc: go.uber.org/mock/gomock should be used instead.