Skip to content

Commit

Permalink
dep: bump golangci-lint from v1.50.1 to v1.58.21
Browse files Browse the repository at this point in the history
  • Loading branch information
prichrd committed May 23, 2024
1 parent 3ca60ea commit 46b7ea3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
run:
skip-files:
- ".*_test.go"

linters:
disable-all: true
enable:
Expand All @@ -18,10 +14,12 @@ linters:
- unconvert
- unparam
- unused
- vet
- govet
- gosec

issues:
exclude:
- G404
- G114
exclude-files:
- ".*_test.go"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ linter = \
-e "GO111MODULE=on" \
-e "GOFLAGS=-mod=vendor" \
-v "$(CURDIR):$(docker_dir)" \
golangci/golangci-lint:v1.50.1
golangci/golangci-lint:v1.58.2

#############
## targets ##
Expand Down
2 changes: 1 addition & 1 deletion cmd/do-agent/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func init() {
buildInfo.Set(1)
kingpin.VersionFlag = kingpin.Flag("version", "Show the application version information").
Short('v').
PreAction(func(c *kingpin.ParseContext) error {
PreAction(func(_ *kingpin.ParseContext) error {
err := versionTmpl.Execute(os.Stdout, map[string]string{
"name": "do-agent",
"version": version,
Expand Down
2 changes: 1 addition & 1 deletion internal/process/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewProcessCollector() prometheus.Collector {
c.collectFn = c.processCollect
} else {
// nop
c.collectFn = func(ch chan<- prometheus.Metric) {}
c.collectFn = func(_ chan<- prometheus.Metric) {}
}

return c
Expand Down

0 comments on commit 46b7ea3

Please sign in to comment.