-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
58 lines (51 loc) · 1.36 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
# Copyright 2023 daz-3ux(杨鹏达) <[email protected]>. All rights reserved.
# Use of this source code is governed by a MIT style
# license that can be found in the LICENSE file. The original repo for
# this file is https://github.com/Daz-3ux/dBlog.
# options for analysis running
run:
issues-exit-code: 1
skip-dirs-use-default: true
modules-download-mode: readonly
timeout: 5m
# settings of specific linters
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
revive:
confidence: 0.8
gofmt:
simplify: true
goimports:
local-prefixes: github.com/Daz-3ux/dBlog
govet:
check-shadowing: true
funlen:
lines: 120
statements: 80
depguard:
rules:
main:
files:
- $all
deny:
- pkg: "github.com/sirupsen/logrus"
desc: "logging is standardised via yunikorn logger and zap"
- pkg: "github.com/stretchr/testify"
desc: "test assertions must use gotest.tools/v3/assert"
# linters to use
linters:
disable-all: true
fast: false
enable:
- unused
- staticcheck
- gofmt
- whitespace
issues:
exclude-use-default: true
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0