Skip to content

Commit

Permalink
Update golangci-lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed May 6, 2024
1 parent 8a15c1e commit 15d67c8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .golangci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ timeout = "10m"
[linters]
enable-all = true
disable = [
# The canonical form is not always the most common form for some headers
# and there is a small chance that switching existing strings could
# break something.
"canonicalheader",

"cyclop",
"dogsled",
"dupl",
Expand All @@ -17,6 +22,9 @@ disable = [
# that would need to be addressed.
"dupword",

# We don't follow its policy about not defining dynamic errors.
"err113",

# This doesn't seem to know about CTEs or DELETEs with RETURNING
"execinquery",

Expand All @@ -41,8 +49,9 @@ disable = [
"gochecksumtype",

"gocognit",
"goerr113",
"godox",

# We have to disable both "gomnd" and "mnd" temporarily, apparently.
"gomnd",

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

# Using a const for every number doesn't necessarily increase code clarity,
# and it would be a ton of work to move everything to that.
"mnd",

# Causes panics, e.g., when processing mmerrors
"musttag",

Expand Down

0 comments on commit 15d67c8

Please sign in to comment.