Skip to content

Commit

Permalink
Updates linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Aug 15, 2016
1 parent d909622 commit eb6189f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion script/lint
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ if [ $? -ne 0 ]; then
gometalinter --install
fi

gometalinter --disable=gocyclo --disable=dupl --disable=deadcode
# dupl is disabled because it has a habbit of identifying tests as duplicated code.
# in its defence: it's right. gocyclo is disabled because I'm a terrible programmer.
gometalinter --disable=gocyclo --disable=dupl --enable=mispell --enable=goimports
4 changes: 2 additions & 2 deletions statements.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ func readNum(str string) int {
return num
}

// Contains seaches the statements for a given statement
// Contains searches the statements for a given statement
// Mostly to make testing things easier
func (ss statements) Contains(search string) bool {
for _, i := range ss {
// The Contains method is used exclusively for testing
// so while stripping the colors out of every statement
// every time Contains is called isn't very efficent,
// every time Contains is called isn't very efficient,
// it won't affect users' performance.
i = stripColors(i)
if i == search {
Expand Down

0 comments on commit eb6189f

Please sign in to comment.