forked from elastic/stream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
92 lines (88 loc) · 2.19 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
81
82
83
84
85
86
87
88
89
90
91
92
---
run:
issues-exit-code: 1
modules-download-mode: readonly
linters:
disable-all: true
enable:
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- stylecheck
- typecheck
- unused
- varcheck
- depguard
- errorlint
- gofumpt
- goimports
- godox
- goheader
- ifshort
- misspell
- prealloc
- unconvert
- revive
fast: false
linters-settings:
goimports:
local-prefixes: github.com/elastic/stream
gofumpt:
extra-rules: true
goheader:
# Use https://github.com/elastic/go-licenser to automatically add headers.
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
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md
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-blacklist
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
stylecheck:
checks:
- all
issues:
include:
# If you're going to write a comment follow the conventions.
# https://go.dev/doc/effective_go#commentary.
# comment on exported (.+) should be of the form "(.+)..."
- EXC0014