Skip to content

Commit

Permalink
Merge pull request thanos-io#7641 from mjtrangoni/fix-errcheck
Browse files Browse the repository at this point in the history
golangci-lint: Update deprecated linter configurations
  • Loading branch information
fpetkovski authored Aug 15, 2024
2 parents 692a4a4 + cc138f1 commit 825b7c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
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

0 comments on commit 825b7c6

Please sign in to comment.