Skip to content

Commit

Permalink
add test data for staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed May 10, 2020
1 parent f8b528c commit cb97d53
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions _testdata/staticcheck.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package testdata

import (
"errors"
"regexp"
)

func unused() {
regexp.Compile(".+")

if errors.New("abc") == errors.New("abc") {
// test SA4000
}
}

0 comments on commit cb97d53

Please sign in to comment.