-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.golangci.yml
More file actions
33 lines (33 loc) · 995 Bytes
/
.golangci.yml
File metadata and controls
33 lines (33 loc) · 995 Bytes
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
---
version: "2"
linters:
exclusions:
generated: disable
paths:
- "pkg/api/v2/.*.go"
- "pkg/api/v3/.*.go"
rules:
- path: "pkg/api/escape/.*.go"
linters:
- bodyclose
enable:
# https://golangci-lint.run/usage/linters/#disabled-by-default
- gocyclo # Computes and checks the cyclomatic complexity of functions.
# Extensible without recompilation through dynamic rules.
# Dynamic rules are written declaratively with AST patterns, filters, report message and optional suggestion.
- mnd # An analyzer to detect magic numbers.
- revive # Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint.
- bodyclose # Checks whether HTTP response body is closed successfully.
- durationcheck
- containedctx
- perfsprint
- protogetter
- spancheck
- sloglint
- noctx
- exhaustive
- contextcheck
- whitespace
- wrapcheck
run:
timeout: 5m