-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
71 lines (66 loc) · 1.64 KB
/
.golangci.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
service:
golangci-lint-version: 1.46.1
run:
tests: false
skip-dirs:
- data
- docs
output:
print-issued-lines: false
linters-settings:
dupl:
threshold: 100
lll:
line-length: 140
goconst:
min-len: 3
min-occurrences: 3
gocritic:
enabled-tags:
- performance
- style
- experimental
revive:
rules:
- name: context-keys-type
disabled: true
staticcheck:
checks: [ "all", "-SA1029" ]
stylecheck:
checks: [ "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
linters:
enable:
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- bodyclose
- exportloopref
- goconst
- gocritic
- goimports
- revive
- nakedret
- nestif
- prealloc
- sqlclosecheck
- stylecheck
- unconvert
- unparam
issues:
exclude-use-default: false
exclude:
- G104
- ST1000
- ST1005
- should check returned error before deferring
- don't use an underscore in package name
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv|.*Rollback). is not checked
- exported func * returns unexported type *, which can be annoying to use
- exported type ([a-zA-Z'.*]*) should have comment or be unexported
- (comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form)
- should have a package comment, unless it's in another file for this package
- grpc.WithInsecure is deprecated
- could not import github.com/gh0st3e/NASA_API
- version "go1.19" does not match go tool version "go1.20.5"