aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/git/git.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-05-04 14:24:51 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-05-04 14:24:51 +0200
commit08141db61a7a947b701d06aa5c90cd825c55e350 (patch)
tree3a47d7c702f152f5f1e5198731227067607b98d6 /pkg/git/git.go
parent0f503c18d939e6dde67eb2b2d44202db44fe9de6 (diff)
gometalinter: enable line length checking
120 columns looks like a reasonable limit and requires few changes to existing code. Update #538
Diffstat (limited to 'pkg/git/git.go')
-rw-r--r--pkg/git/git.go1
1 files changed, 1 insertions, 0 deletions
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]+$")