forked from go-kratos/kratos-layout
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.golangci.yml
49 lines (47 loc) · 1.1 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
run:
go: '1.22'
timeout: '5m'
skip-files: [ ]
linters:
enable:
- gci
- revive
disable-all: true
linters-settings:
revive:
rules:
- name: var-naming
arguments: [ [ "ID", "IDS" ] ]
- name: line-length-limit
arguments: [ 200 ]
- name: argument-limit
arguments: [ 10 ]
- name: function-result-limit
arguments: [ 10 ]
- name: blank-imports
- name: duplicated-imports
- name: bool-literal-in-expr
- name: constant-logical-expr
- name: context-as-argument
- name: error-return
- name: deep-exit
- name: defer
- name: early-return
- name: indent-error-flow
- name: if-return
- name: superfluous-else
- name: empty-block
- name: get-return
- name: increment-decrement
- name: modifies-value-receiver
- name: range
- name: range-val-in-closure
- name: receiver-naming
- name: string-of-int
- name: struct-tag
- name: unexported-naming
- name: unexported-return
- name: unreachable-code
- name: unused-parameter
- name: unused-receiver
- name: waitgroup-by-value