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

golangci-lint: Update deprecated linter configurations #7641

Merged
merged 4 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions .errcheck_excludes.txt

This file was deleted.

28 changes: 14 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,17 @@
# options for analysis running
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
deadline: 5m
timeout: 5m

# exit code when at least one issue was found, default is 1
issues-exit-code: 1

# which dirs to skip: they won't be analyzed;
# can use regexp here: generated.*, regexp is applied on full path;
# default value is empty list, but next dirs are always skipped independently
# from this option's value:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs:
- vendor
- internal/cortex


# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number"
format: colored-line-number
# The formats used to render issues.
formats:
- format: colored-line-number
path: stdout

# print lines of code with issue, default is true
print-issued-lines: true
Expand Down Expand Up @@ -51,7 +43,11 @@ linters:

linters-settings:
errcheck:
exclude: ./.errcheck_excludes.txt
# List of functions to exclude from checking, where each entry is a single function to exclude.
exclude-functions:
- (github.com/go-kit/log.Logger).Log
- fmt.Fprintln
- fmt.Fprint
misspell:
locale: US
goconst:
Expand Down Expand Up @@ -80,3 +76,7 @@ issues:
- linters:
- unused
text: "ruleAndAssert"
# Which dirs to exclude: issues from them won't be reported.
exclude-dirs:
- vendor
- internal/cortex
Loading