forked from anfragment/zen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
43 lines (40 loc) · 869 Bytes
/
.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
# Refer to golangci-lint's example config file for more options and information:
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
linters:
enable:
- goimports
- gosec
- gosimple
- govet
- importas
- ineffassign
- misspell
- revive
- staticcheck
- typecheck
- unconvert
- unused
- gocritic
- stylecheck
- unparam
- asciicheck
- prealloc
- predeclared
- makezero
- bidichk
- godot
- tparallel
disable:
- errcheck
run:
modules-download-mode: readonly
timeout: 5m
linters-settings:
gosec:
config:
# Maximum allowed permissions mode for os.OpenFile and os.Chmod
# Default: "0600"
G302: "0644"
# Maximum allowed permissions mode for os.WriteFile and ioutil.WriteFile
# Default: "0600"
G306: "0644"