Skip to content

Commit c2e8d0a

Browse files
committed
chore: fix linter issues
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
1 parent 3355644 commit c2e8d0a

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.golangci.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ run:
33
tests: false
44

55
output:
6-
format: tab
6+
formats:
7+
- format: tab
78

89
linters-settings:
9-
govet:
10-
# report about shadowed variables
11-
check-shadowing: true
10+
# govet:
11+
# # report about shadowed variables
12+
# check-shadowing: true
1213

13-
golint:
14-
# minimal confidence for issues, default is 0.8
15-
min-confidence: 0.8
14+
# golint:
15+
# # minimal confidence for issues, default is 0.8
16+
# min-confidence: 0.8
1617

1718
gofmt:
1819
# simplify code: gofmt with `-s` option, true by default
@@ -27,9 +28,9 @@ linters-settings:
2728
# minimal code complexity to report, 30 by default (but we recommend 10-20)
2829
min-complexity: 10
2930

30-
maligned:
31-
# print struct with more effective memory layout or not, false by default
32-
suggest-new: true
31+
# maligned:
32+
# # print struct with more effective memory layout or not, false by default
33+
# suggest-new: true
3334

3435
dupl:
3536
# tokens count to trigger issue, 150 by default
@@ -50,7 +51,7 @@ linters-settings:
5051
# XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
5152
# if it's called for subdir of a project it can't find funcs usages. All text editor integrations
5253
# with golangci-lint call it on a directory with the changed file.
53-
check-exported: false
54+
exported-fields-are-used: false
5455

5556
unparam:
5657
# Inspect exported functions, default is false. Set to true if no external program/library imports your code.
@@ -89,6 +90,7 @@ linters-settings:
8990
locale: US
9091

9192
linters:
93+
disable-all: true
9294
enable:
9395
- megacheck
9496
- govet
@@ -121,6 +123,9 @@ issues:
121123
- scopelint
122124
- unparam
123125
- goconst
126+
- path: (.*).go
127+
linters:
128+
- typecheck
124129

125130
# G306: Expect WriteFile permissions to be 0600 or less
126131
# mainly seen in internal/cli/wrtier.go
@@ -146,8 +151,8 @@ issues:
146151
# Default is false.
147152
new: false
148153

149-
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
150-
max-per-linter: 0
154+
# # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
155+
# max-issues-per-linter: 0
151156

152157
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
153158
max-same-issues: 0

0 commit comments

Comments
 (0)