aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-02 15:15:21 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-02 15:27:58 +0000
commit5cdbe12ef7ec1ee2d99c5430924aab23c0fea503 (patch)
tree58f2b79f952a7feaa507eb015eab4a1eb253ab70 /pkg/vcs
parenta10c0112aec1525f7ca5f74716fc5f0552e2d05e (diff)
all: remove unused nolint directives
Diffstat (limited to 'pkg/vcs')
-rw-r--r--pkg/vcs/vcs.go2
-rw-r--r--pkg/vcs/vcs_test.go2
2 files changed, 0 insertions, 4 deletions
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 <a@email.com> (maintainer:KERNEL)
Foo Bar<b@email.com> (reviewer:KERNEL)
<somelist@list.com> (open list:FOO)
"Supporter Foo" <c@email.com> (supporter:KERNEL)
linux-kernel@vger.kernel.org (open list)`)
- // nolint: lll
test2 := []byte(`Foo Bar <a@email.com> (maintainer:KERNEL)
Foo Bar<b@email.com> (reviewer:KERNEL)
"Supporter Foo" <c@email.com> (supporter:KERNEL)