Skip to content

Commit

Permalink
test: enable all linters in metalinter
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinalwadhwa committed Nov 10, 2018
1 parent 5e426a2 commit 2272086
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ lint() {
gometalinter --install
fi

gometalinter ./...
gometalinter --enable-all --line-length=120 ./...
}

# build the code
Expand Down
4 changes: 4 additions & 0 deletions did_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand All @@ -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'}
Expand Down

0 comments on commit 2272086

Please sign in to comment.