File tree 2 files changed +24
-116
lines changed
2 files changed +24
-116
lines changed Original file line number Diff line number Diff line change @@ -8,28 +8,36 @@ linters:
8
8
disable-all : true
9
9
# Enable specific linter
10
10
enable :
11
+ # Nice to have
12
+ # - depguard
11
13
# - errcheck
14
+ # - gocritic
15
+ # - thelper
12
16
- errorlint
13
17
- exportloopref
18
+ - forbidigo
14
19
- gofmt
15
20
- goimports
21
+ - gosec
16
22
- gosimple
17
23
- govet
18
- - revive
19
- - gosec
24
+ - ineffassign
20
25
- misspell
26
+ - revive
21
27
- staticcheck
28
+ - tenv
22
29
- typecheck
23
30
- unconvert
24
- - ineffassign
25
- - tenv
26
- # Nice to have
27
- # - thelper
28
- # - depguard
29
- # We have to dig deeper
30
- # - gocritic
31
31
32
32
linters-settings :
33
+ forbidigo :
34
+ forbid :
35
+ - p : ^(fmt\.Print(|f|ln)|print|println)$ # Optional message that gets included in error reports.
36
+ msg : in cli package use `feedback.*` instead
37
+ - p : (os\.(Stdout|Stderr|Stdin))(# )?
38
+ msg : in cli package use `feedback.*` instead
39
+ analyze-types : true
40
+
33
41
revive :
34
42
confidence : 0.8
35
43
rules :
@@ -119,3 +127,10 @@ issues:
119
127
- linters : [revive]
120
128
path : internal/algorithms/channels.go
121
129
text : " empty-block"
130
+
131
+ # Run linters only on specific path
132
+ - path-except : internal/cli/
133
+ linters :
134
+ - forbidigo
135
+ - path : internal/cli/feedback/
136
+ linters : [forbidigo]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments