-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
63 lines (57 loc) · 1.19 KB
/
.golangci.yml
File metadata and controls
63 lines (57 loc) · 1.19 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# golangci-lint configuration for Go services
# See: https://golangci-lint.run/usage/configuration/
run:
timeout: 5m
# Only lint changed files in CI (use --new-from-rev=origin/main)
# Uncomment for local development to lint all:
# skip-dirs-use-default: true
linters:
enable:
# Default linters
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
# Additional recommended linters
- gofmt
- goimports
- revive
- misspell
- unconvert
- unparam
- gocritic
linters-settings:
gofmt:
simplify: true
goimports:
local-prefixes: github.com/distributed-task-observatory
revive:
rules:
- name: exported
severity: warning
- name: var-naming
severity: warning
gocritic:
enabled-tags:
- diagnostic
- style
- performance
issues:
# Show all issues from a linter
max-issues-per-linter: 0
max-same-issues: 0
# Exclude some linters from running on tests
exclude-rules:
- path: _test\.go
linters:
- errcheck
- unparam
severity:
default-severity: warning
rules:
- linters:
- govet
- staticcheck
severity: error