-
Notifications
You must be signed in to change notification settings - Fork 4
/
.golangci.yml
80 lines (78 loc) · 1.72 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
run:
timeout: 5m
skip-dirs-use-default: true
modules-download-mode: readonly
allow-parallel-runners: true
go: '1.20'
output:
sort-results: true
linters:
disable-all: true
enable:
- gci
- ineffassign
- revive
- staticcheck
- typecheck
- bodyclose
- contextcheck
- godot
- gosec
- noctx
- reassign
- whitespace
- wsl
- wrapcheck
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/suborbital/se2-go)
- blank
- dot
custom-order: true
revive:
max-open-files: 2048
ignore-generated-header: true
severity: error
enable-all-rules: false
confidence: 0.1
rules:
- name: add-constant
maxLitCount: 1
- name: bool-literal-in-expr
- name: comment-spacings
- name: context-as-argument
- name: context-keys-type
- name: deep-exit
- name: defer
- name: duplicated-imports
severity: error
disabled: false
- name: early-return
- name: empty-block
- name: empty-lines
- name: error-naming
- name: error-return
- name: error-strings
- name: errorf
- name: exported
- name: identical-branches
- name: import-shadowing
severity: error
disabled: false
- name: modifies-parameter
- name: modifies-value-receiver
- name: nested-structs
- name: redefines-builtin-id
- name: superfluous-else
- name: var-naming
- name: unexported-return
- name: unhandled-error
- name: unnecessary-stmt
- name: unreachable-code
- name: unused-parameter
- name: unused-receiver
- name: use-any
- name: useless-break