From 08141db61a7a947b701d06aa5c90cd825c55e350 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 4 May 2018 14:24:51 +0200 Subject: gometalinter: enable line length checking 120 columns looks like a reasonable limit and requires few changes to existing code. Update #538 --- pkg/git/git.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/git/git.go') diff --git a/pkg/git/git.go b/pkg/git/git.go index 812f919c8..ed7bc3a77 100644 --- a/pkg/git/git.go +++ b/pkg/git/git.go @@ -335,6 +335,7 @@ func CheckCommitHash(hash string) bool { } var ( + // nolint: lll gitRepoRe = regexp.MustCompile(`^(git|ssh|http|https|ftp|ftps)://[a-zA-Z0-9-_]+(\.[a-zA-Z0-9-_]+)+(:[0-9]+)?/[a-zA-Z0-9-_./]+\.git(/)?$`) gitBranchRe = regexp.MustCompile("^[a-zA-Z0-9-_/.]{2,200}$") gitHashRe = regexp.MustCompile("^[a-f0-9]+$") -- cgit mrf-deployment