-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
53 lines (47 loc) · 1.28 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
# This file contains configuration options for GolangCI-Lint.
#
# - It requires golangci-lint 1.48.0 or newer.
# - Available linters see: https://golangci-lint.run/usage/linters/
# - Sample of config see: https://golangci-lint.run/usage/configuration/#config-file
# Options for analysis running
run:
# Include test files.
tests: true
# List of build tags, all linters use it. Default is empty list.
build-tags:
- golangci
# Allow multiple parallel golangci-lint instances running.
allow-parallel-runners: true
# Which dirs to skip. Issues from them won't be reported.
issues:
exclude-dirs:
- .github
# Output configuration options
output:
# Sorts results by: filepath, line and column
sort-results: true
# Enabled all linters. Conf settings may follow.
linters:
enable-all: true
disable:
# Disable deprecated/abandoned linters
- deadcode
- execinquery
- exhaustivestruct
- golint
- gomnd
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- structcheck
- varcheck
# Disabled because of testing private functions
- testpackage
# We allow global variable for testing purposes
- gochecknoglobals
# Disabled due to the use of external packages
- depguard
# Allow to use init() functions due to setup of the package
- gochecknoinits