aboutsummaryrefslogtreecommitdiff
path: root/lib/git/git_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-06-14 15:56:51 +0700
committerShulhan <ms@kilabit.info>2019-06-14 15:56:51 +0700
commitadc700912f9da26c517c8130558d6eb972a51079 (patch)
treec03696c3b398319cf837d67d8fcc5d7844e05420 /lib/git/git_test.go
parent374bfc155857877f9638ccae37baacef01dc4b6a (diff)
downloadpakakeh.go-adc700912f9da26c517c8130558d6eb972a51079.tar.xz
all: fix nolint format
The valid syntax to suppress linter warnings is "//nolint:<name>" with no space between comment and "nolint" and between ":". Also, we move the placement of nolint directive to the top of statements for multiple nolint in the same scope. While at it, fix and supress some linter warnings.
Diffstat (limited to 'lib/git/git_test.go')
-rw-r--r--lib/git/git_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git/git_test.go b/lib/git/git_test.go
index 8e588abb..ebc114f1 100644
--- a/lib/git/git_test.go
+++ b/lib/git/git_test.go
@@ -15,8 +15,9 @@ import (
const _testRepoDir = "testdata/beku_test"
+//nolint:gochecknoglobals
var (
- _testRemoteURL string //nolint: gochecknoglobals
+ _testRemoteURL string
)
func TestClone(t *testing.T) {