-
Notifications
You must be signed in to change notification settings - Fork 39
/
.golangci.yml
36 lines (32 loc) · 1.08 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
service:
project-path: github.com/codeready-toolchain/member-operator
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
revive:
rules:
- name: dot-imports
disabled: true # we allow for dot-imports