-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.golangci.yml
47 lines (47 loc) · 2.37 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
37
38
39
40
41
42
43
44
45
46
47
# https://golangci-lint.run/usage/linters
linters:
# disable-all: true
# enable:
# - errcheck
# - gosimple
# - govet
# - ineffassign
# - staticcheck
# - unused
# - err113
# - unparam
# - gocritic # https://github.com/go-critic/go-critic
# - misspell # errors in English words
enable-all: true
disable:
- gosec # https://github.com/securego/gosec
- makezero # make([]byte, readSize) => make([]byte, 0, readSize)
- dupl # code clone detection
- wsl # force use empty lines
- goconst # string has 7 occurrences, make it a constant
- gocognit # cognitive complexity 80 of func is high (> 30)
- gocyclo # cyclomatic complexity 61 of func is high (> 30)
- revive # cognitive complexity 73 of func (> 30)
- maintidx # function loadServices, Cyclomatic Complexity: 27, Halstead Volume: 6660.60, Maintainability Index: 18
- cyclop # calculated cyclomatic complexity for function loadServices is 28, max is 10
- depguard # import 'github.com/awesome-gocui/gocui' is not allowed from list 'Main'
- forbidigo # use of `fmt.Printf` forbidden by pattern
- funlen # function is too long (70 > 60)
- godot # comment should end in a period
- gofumpt # file is not properly formatted for regex
- lll # line is 121 characters long, which exceeds the maximum of 120 characters
- mnd # magic number in <argument> detected
- nestif # 'if err != nil' has complex nested blocks (complexity: 8)
- nilerr # error is not nil but it returns nil
- nlreturn # break with no blank line before
- tagliatelle # json
- varnamelen # variable name 'i' is too short for the scope of its usage
- wrapcheck # error returned from external package is unwrapped
- ireturn # function createFilterEditor returns interface (github.com/awesome-gocui/gocui.Editor)
- nonamedreturns # named return "output" with type "[]byte" found
- stylecheck # ST1003/ST1023
- exhaustruct # app is missing fields gui, getOS, getArch, hostName, userName...
- unconvert # unnecessary conversion
- copyloopvar # Go 1.22 +
- intrange # Go 1.22+
- exportloopref # Lintern is obsolete