forked from y-scope/clp-ffi-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
54 lines (51 loc) · 1.12 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
53
54
output:
sort-results: true
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- linters:
- revive
source: "^\\s*// (?:\\[.+\\]: )?https?://.+"
linters:
disable-all: true
enable:
- "gocritic"
- "goimports"
- "govet"
- "ineffassign"
- "nakedret"
- "revive"
- "staticcheck"
- "stylecheck"
- "unused"
linters-settings:
gocritic:
disabled-checks:
# Appears to cause a false positive for Cgo calls
- "dupSubExpr"
goimports:
# Put imports beginning with prefix after 3rd-party packages.
local-prefixes: "github.com/y-scope/clp-ffi-go"
nakedret:
# Completely disallow naked returns
max-func-lines: 0
revive:
rules:
- name: "line-length-limit"
severity: "warning"
disabled: false
arguments: [100]
staticcheck:
checks:
- "all"
stylecheck:
checks:
- "all"
# Documentation guidelines that we don't follow (non-default)
- "-ST1020"
- "-ST1021"
- "-ST1022"
# Redundant variable declaration (non-default)
- "-ST1023"
initialisms: [""]