forked from celestiaorg/celestia-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
41 lines (40 loc) · 929 Bytes
/
Copy path.golangci.yml
File metadata and controls
41 lines (40 loc) · 929 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
34
35
36
37
38
39
40
41
version: "2"
run:
modules-download-mode: readonly
linters:
enable:
- copyloopvar
- gocritic
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- unconvert
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
settings:
nakedret:
# Ban the use of naked returns as they decrease code readability
# Make an issue if func has more lines of code than this setting, and it has naked returns.
max-func-lines: 0 # Default: 30
revive:
severity: warning
rules:
- name: redundant-import-alias
formatters:
enable:
- gci
- gofumpt
exclusions:
# Sources are excluded if they contain lines like `autogenerated file`, `code generated`, `do not edit`. (e.g. .pb.go files)
generated: lax
paths:
- third_party$
- builtin$
- examples$