-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
43 lines (42 loc) · 1.28 KB
/
.golangci.yaml
File metadata and controls
43 lines (42 loc) · 1.28 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
version: "2"
linters:
default: all
disable:
- depguard
- wsl
settings:
gomoddirectives:
replace-local: true
govet:
enable-all: true
revive:
enable-default-rules: true
wsl_v5:
allow-first-in-block: true
allow-whole-block: false
branch-max-lines: 2
formatters:
enable:
- gci
- gofmt
- gofumpt
settings:
gci:
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(github.com/go-git/go-git/) # Custom section: groups all imports with the specified Prefix.
- blank # Blank section: contains all blank imports. This section is not present unless explicitly enabled.
- dot # Dot section: contains all dot imports. This section is not present unless explicitly enabled.
- localmodule # Local module section: contains all local packages. This section is not present unless explicitly enabled.
no-inline-comments: true
no-prefix-comments: true
custom-order: true
no-lex-order: true
gofmt:
simplify: true
rewrite-rules:
- pattern: 'interface{}'
replacement: 'any'
gofumpt:
extra-rules: true