-
Notifications
You must be signed in to change notification settings - Fork 25
/
.golangci.yml
32 lines (28 loc) · 997 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
service:
project-path: github.com/codeready-toolchain/api
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 10m
linters:
enable:
- megacheck
- gocyclo
- gofmt
- revive
- misspell
presets: # groups of linters. See https://golangci-lint.run/usage/linters/
- bugs
- unused
disable:
- golint # deprecated, use 'revive'
- scopelint # deprecated, use 'exportloopref'
- contextcheck # too many false-positives
- noctx # not needed
# all available settings of specific linters
linters-settings:
unparam:
# Inspect exported functions, default is false. Set to true if no external program/library imports your code.
# XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
# if it's called for subdir of a project it can't find external interfaces. All text editor integrations
# with golangci-lint call it on a directory with the changed file.
check-exported: true