From 2272086c9edab1b6a9e46d784f93652997318871 Mon Sep 17 00:00:00 2001 From: Mrinal Wadhwa Date: Sat, 10 Nov 2018 15:57:49 -0800 Subject: [PATCH] test: enable all linters in metalinter --- build | 2 +- did_test.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build b/build index 1717df2..51f4ee4 100755 --- a/build +++ b/build @@ -46,7 +46,7 @@ lint() { gometalinter --install fi - gometalinter ./... + gometalinter --enable-all --line-length=120 ./... } # build the code diff --git a/did_test.go b/did_test.go index 6b67d7f..28fee9d 100644 --- a/did_test.go +++ b/did_test.go @@ -603,6 +603,8 @@ func Test_isNotAlpha(t *testing.T) { } } +// nolint: dupl +// Test_isNotSmallLetter and Test_isNotBigLetter look too similar to the dupl linter, ignore it func Test_isNotBigLetter(t *testing.T) { a := []byte{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'Z', 'Y', 'Z'} @@ -620,6 +622,8 @@ func Test_isNotBigLetter(t *testing.T) { } } +// nolint: dupl +// Test_isNotSmallLetter and Test_isNotBigLetter look too similar to the dupl linter, ignore it func Test_isNotSmallLetter(t *testing.T) { a := []byte{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'z', 'y', 'z'}