-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
49 lines (49 loc) · 1.01 KB
/
.golangci.yml
File metadata and controls
49 lines (49 loc) · 1.01 KB
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
# See https://golangci-lint.run/
version: "2"
run:
modules-download-mode: vendor
timeout: 30m
output:
formats:
text:
path: stdout
colors: true
linters:
default: none
enable:
- errcheck
- govet
- ineffassign
- revive
- staticcheck
- whitespace
# Enable these when working on test refactoring
#- testifylint
#- usetesting
settings:
staticcheck:
checks:
- all
- -QF1001 # Apply De Morgan's law
- -QF1003 # Convert if/else-if chain to tagged switch
- -S1008 # Simplify returning boolean expression
- -S1023 # Omit redundant control flow
revive:
rules:
- name: var-naming
arguments:
- []
- []
- - skip-package-name-checks: true
- name: import-shadowing
exclusions:
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party/ampli/ampli.go
formatters:
enable:
- gofmt