Skip to content

Commit

Permalink
Update golangci-lint config format for deprecations (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
zalegrala authored Aug 19, 2024
1 parent f0f7612 commit 463219e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
5 changes: 0 additions & 5 deletions .errcheck-exclude

This file was deleted.

14 changes: 8 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
output:
format: line-number

formats:
- format: line-number
linters:
enable:
- goimports
- gofmt
- misspell
- revive
- loggercheck

linters-settings:
errcheck:
# path to a file containing a list of functions to exclude from checking
# see https://github.com/kisielk/errcheck#excluding-functions for details
exclude: ./.errcheck-exclude
exclude-functions:
- io/ioutil.WriteFile
- io/ioutil.ReadFile
- (github.com/go-kit/log.Logger).Log
- io.Copy
- (github.com/opentracing/opentracing-go.Tracer).Inject
goimports:
local-prefixes: "github.com/grafana/dskit"

run:
timeout: 5m

# List of build tags, all linters use it.
build-tags:
- netgo
Expand Down

0 comments on commit 463219e

Please sign in to comment.