aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs
diff options
context:
space:
mode:
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)