This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.golangci.yml
73 lines (68 loc) · 1.64 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# This is a manually created golangci.com yaml configuration with
# some defaults explicitly provided. There is a large number of
# linters we've enabled that are usually disabled by default.
#
# https://github.com/golangci/golangci-lint#config-file
# This section provides the configuration for how golangci
# outputs it results from the linters it executes.
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
# This section provides the configuration for which linters
# golangci will execute. Several of them were disabled by
# default but we've opted to enable them.
linters:
# disable all linters as new linters might be added to golangci
disable-all: true
enable:
# linters enabled by default
- deadcode
- errcheck
- govet
- gosimple # a.k.a. megacheck
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
# linters disabled by default
- bodyclose
- gocognit
- goconst
- gocyclo
- goimports
- gosec
- funlen
- maligned
- misspell
- stylecheck
- unparam
- whitespace
- wsl
# static list of linters we know golangci can run but we've
# chosen to leave disabled for now
#
# disable:
# - depguard
# - dogsled
# - dupl
# - gocritic
# - gochecknoinits
# - gochecknoglobals
# - godox
# - gofmt
# - golint
# - gomnd
# - interfacer
# - lll
# - nakedret
# - scopelint
# - unconvert
# This section provides the configuration for each linter
# we've instructed golangci to execute.
linters-settings:
funlen:
lines: 100
statements: 60