From 9f456ff8f6705ba63e302bff9035f7689e1d7a64 Mon Sep 17 00:00:00 2001 From: favonia Date: Fri, 3 Nov 2023 11:56:22 -0500 Subject: [PATCH] ci: adjust linter settings (#628) --- .golangci.yaml | 9 +-------- internal/monitor/uptimekuma.go | 4 ++-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index fdac4638..cb00402f 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -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 diff --git a/internal/monitor/uptimekuma.go b/internal/monitor/uptimekuma.go index 48c869a3..02042f73 100644 --- a/internal/monitor/uptimekuma.go +++ b/internal/monitor/uptimekuma.go @@ -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 } @@ -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 }