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'}