From 5cdbe12ef7ec1ee2d99c5430924aab23c0fea503 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 2 Jan 2026 15:15:21 +0100 Subject: all: remove unused nolint directives --- pkg/vcs/vcs.go | 2 -- pkg/vcs/vcs_test.go | 2 -- 2 files changed, 4 deletions(-) (limited to 'pkg/vcs') diff --git a/pkg/vcs/vcs.go b/pkg/vcs/vcs.go index 95167d2e9..42a344e56 100644 --- a/pkg/vcs/vcs.go +++ b/pkg/vcs/vcs.go @@ -317,7 +317,6 @@ func runSandboxed(dir, command string, args ...string) ([]byte, error) { } var ( - // nolint: lll gitLocalRepoRe = regexp.MustCompile(`^file:///[a-zA-Z0-9-_./~]+(/)?$`) // nolint: lll gitRemoteRepoRe = regexp.MustCompile(`^(git|ssh|http|https|ftp|ftps|sso)://[a-zA-Z0-9-_.]+(:[0-9]+)?(/[a-zA-Z0-9-_./~]+)?(/)?$`) @@ -382,7 +381,6 @@ func FileLink(url, hash, file string, line int) string { return link(url, hash, file, line, 3) } -// nolint: goconst func link(url, hash, file string, line, typ int) string { if url == "" || hash == "" { return "" diff --git a/pkg/vcs/vcs_test.go b/pkg/vcs/vcs_test.go index 7abeba55b..ae48adb01 100644 --- a/pkg/vcs/vcs_test.go +++ b/pkg/vcs/vcs_test.go @@ -244,13 +244,11 @@ func TestFileLink(t *testing.T) { } func TestParse(t *testing.T) { - // nolint: lll test1 := []byte(`Foo Bar (maintainer:KERNEL) Foo Bar (reviewer:KERNEL) (open list:FOO) "Supporter Foo" (supporter:KERNEL) linux-kernel@vger.kernel.org (open list)`) - // nolint: lll test2 := []byte(`Foo Bar (maintainer:KERNEL) Foo Bar (reviewer:KERNEL) "Supporter Foo" (supporter:KERNEL) -- cgit mrf-deployment