-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.golangci.yml
41 lines (41 loc) · 971 Bytes
/
.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
version: "2"
linters:
enable:
# Checks for non-ASCII identifiers
- asciicheck
# Computes and checks the cyclomatic complexity of functions.
- gocyclo
# Inspects source code for security problems.
- gosec
settings:
gosec:
excludes:
# Ignore controversial integer overflow warnings.
- G115
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
# Exclude generated test files that would otherwise fail.
- gen_struct_test.go
- examples/structs/gen_struct.go
- pubsub-gen/internal/end2end/generated_traverser_test.go
- third_party$
- builtin$
- examples$
issues:
# Disable max issues per linter.
max-issues-per-linter: 0
# Disable max same issues.
max-same-issues: 0
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$