-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.golangci.yml
46 lines (42 loc) · 1.02 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
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
run:
timeout: 5m
modules-download-mode: readonly
tests: false
go: '1.15'
linters:
enable:
- errcheck
- goimports
- revive
- govet
- staticcheck
- gosimple
disable:
- unused
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
new-from-rev: master
linters-settings:
staticcheck:
# SAxxxx checks in https://staticcheck.io/docs/configuration/options/#checks
# Default value: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022"]
checks:
# default checks
- "all"
- "-ST1000"
- "-ST1003"
- "-ST1016"
- "-ST1020"
- "-ST1021"
- "-ST1022"
# other checks
- "-SA1019" # Enable using a deprecated function, variable, constant or field. For compatibility reasons.
goimports:
local-prefixes: github.com/aliyun/aliyun-odps-go-sdk
revive:
rules:
- name: var-naming
disabled: true