Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update golangci-lint config #82

Merged
merged 1 commit into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading