-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.golangci.yml
More file actions
91 lines (91 loc) · 2.12 KB
/
.golangci.yml
File metadata and controls
91 lines (91 loc) · 2.12 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "2"
run:
modules-download-mode: readonly
issues-exit-code: 1
linters:
default: none
enable:
- errcheck
- errorlint
- godox
- goheader
- govet
- ineffassign
- misspell
- prealloc
- revive
- staticcheck
- unconvert
- unused
settings:
goheader:
template: |-
Licensed to Elasticsearch B.V. under one or more agreements.
Elasticsearch B.V. licenses this file to you under the Apache 2.0 License.
See the LICENSE file in the project root for more information.
revive:
enable-all-rules: false
rules:
- name: bare-return
- name: call-to-gc
- name: confusing-results
- name: constant-logical-expr
- name: context-as-argument
- name: deep-exit
- name: defer
- name: duplicated-imports
- name: early-return
- name: empty-block
- name: error-strings
- name: errorf
- name: exported
arguments:
- checkPrivateReceivers
- name: imports-blocklist
arguments:
- github.com/pkg/errors
- name: increment-decrement
- name: range
- name: range-val-address
- name: range-val-in-closure
- name: receiver-naming
- name: struct-tag
- name: time-naming
- name: unconditional-recursion
- name: unexported-naming
- name: unexported-return
- name: unnecessary-stmt
- name: unreachable-code
- name: unused-parameter
- name: unused-receiver
- name: var-declaration
- name: waitgroup-by-value
staticcheck:
checks:
- all
exclusions:
generated: lax
presets:
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofumpt
- goimports
settings:
gofumpt:
extra-rules: true
goimports:
local-prefixes:
- github.com/elastic/stream
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$