Skip to content

Commit

Permalink
Add golangci-lint to travis.yml google#25
Browse files Browse the repository at this point in the history
  • Loading branch information
u5surf committed Aug 2, 2019
1 parent f140a64 commit 83be10e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ go:
- 1.2
- tip

go_import_path: github.com/google/gofuzz

before_install:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1

install:
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi

script:
- go test -cover
- go mod download && golangci-lint run --tests=false
5 changes: 1 addition & 4 deletions fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,7 @@ var fillFuncMap = map[reflect.Kind]func(reflect.Value, *rand.Rand){

// randBool returns true or false randomly.
func randBool(r *rand.Rand) bool {
if r.Int()&1 == 1 {
return true
}
return false
return r.Int()&1 == 1
}

type charRange struct {
Expand Down

0 comments on commit 83be10e

Please sign in to comment.