Skip to content

Commit 15d67c8

Browse files
committed
Update golangci-lint config
1 parent 8a15c1e commit 15d67c8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.golangci.toml

+14-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ timeout = "10m"
99
[linters]
1010
enable-all = true
1111
disable = [
12+
# The canonical form is not always the most common form for some headers
13+
# and there is a small chance that switching existing strings could
14+
# break something.
15+
"canonicalheader",
16+
1217
"cyclop",
1318
"dogsled",
1419
"dupl",
@@ -17,6 +22,9 @@ disable = [
1722
# that would need to be addressed.
1823
"dupword",
1924

25+
# We don't follow its policy about not defining dynamic errors.
26+
"err113",
27+
2028
# This doesn't seem to know about CTEs or DELETEs with RETURNING
2129
"execinquery",
2230

@@ -41,8 +49,9 @@ disable = [
4149
"gochecksumtype",
4250

4351
"gocognit",
44-
"goerr113",
4552
"godox",
53+
54+
# We have to disable both "gomnd" and "mnd" temporarily, apparently.
4655
"gomnd",
4756

4857
# This only "caught" one thing, and it seemed like a reasonable use
@@ -65,6 +74,10 @@ disable = [
6574
# what to allow.
6675
"maintidx",
6776

77+
# Using a const for every number doesn't necessarily increase code clarity,
78+
# and it would be a ton of work to move everything to that.
79+
"mnd",
80+
6881
# Causes panics, e.g., when processing mmerrors
6982
"musttag",
7083

0 commit comments

Comments
 (0)