forked from palomachain/paloma
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yml
41 lines (39 loc) · 911 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
run:
go: '1.22'
issues-exit-code: 1
timeout: 10m
modules-download-mode: readonly
allow-parallel-runners: true
skip-dirs:
- .git
- .docker
- .bin
linters:
disable-all: true
enable:
- errcheck
- gci
- gofmt
- gofumpt
- goimports
- govet
- misspell
- unused
- gosec
fast: false
issues:
# Restricts maximum count of issues to display with the same text, and show all instead.
max-same-issues: 0
max-issues-per-linter: 0
exclude-rules:
# disabling some linters for test files
- path: _test\.go
linters:
- errcheck
- gosec
# disabling some linters rules
exclude:
# gosec
- G101 # Potential hardcoded credentials
- G114 # Use of net/http serve function that has no support for setting timeouts
- G113 # Potential uncontrolled memory consumption in Rat.SetString - this is fixed since go 1.17.7