Skip to content

Commit

Permalink
ci: adjust linter settings (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed Nov 3, 2023
1 parent f32ec28 commit 9f456ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,10 @@ linters-settings:
severity: warning
disabled: true

issues:
exclude-rules:
# False positive: https://github.com/kunwardeep/paralleltest/issues/8.
- linters:
- paralleltest
text: "does not use range value in test Run"

linters:
enable-all: true
disable:
- cyclop # The linter can detect complicated code, but it never lead to actual code changes
- cyclop # The linter can detect complicated code, but it never leads to actual code changes
- deadcode # deprecated
- depguard # This is useless. I already carefully documented all non-Google libraries
- exhaustivestruct # deprecated; replaced by exhaustruct
Expand Down
4 changes: 2 additions & 2 deletions internal/monitor/uptimekuma.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (h *UptimeKuma) Success(ctx context.Context, ppfmt pp.PP, _message string)
}

// Start does nothing.
func (h *UptimeKuma) Start(ctx context.Context, ppfmt pp.PP, _message string) bool {
func (h *UptimeKuma) Start(_ctx context.Context, _ppfmt pp.PP, _message string) bool {
return true
}

Expand All @@ -174,7 +174,7 @@ func (h *UptimeKuma) Failure(ctx context.Context, ppfmt pp.PP, message string) b
}

// Log does nothing.
func (h *UptimeKuma) Log(ctx context.Context, ppfmt pp.PP, _message string) bool {
func (h *UptimeKuma) Log(_ctx context.Context, _ppfmt pp.PP, _message string) bool {
return true
}

Expand Down

0 comments on commit 9f456ff

Please sign in to comment.