-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.golangci.yml
More file actions
40 lines (37 loc) · 865 Bytes
/
Copy path.golangci.yml
File metadata and controls
40 lines (37 loc) · 865 Bytes
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
version: "2"
severity:
default: error
run:
timeout: 5m
tests: false
modules-download-mode: readonly
linters:
default: none
enable:
- govet
- staticcheck
- unused
- funcorder
- copyloopvar
- ineffassign
- misspell
- revive
settings:
funcorder:
constructor: false
staticcheck:
checks:
- SA1000 # Invalid regular expression
- SA4006 # A value assigned to a variable is never read before being overwritten. Forgotten error check or dead code?
- SA4009 # A function argument is overwritten before its first use.
revive:
severity: warning
rules:
- name: line-length-limit
severity: error
arguments: [180]
- name: defer
severity: error
arguments: [[loop, return, recover]]
misspell:
locale: US