github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/.lint.windows.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  # goimports and gofmt complain about cr-lf line endings, so don't run them on 
     4  #	a Windows machine where git is configured to auto-convert line endings
     5  
     6  OS=`uname -s`
     7  if [[ $OS == *"NT-"* ]]; then 
     8  	GOIMPORTS_OPTION=
     9  	GOFMT_OPTION=
    10  else
    11  	GOIMPORTS_OPTION=--enable=goimports
    12  	GOFMT_OPTION=--enable=gofmt
    13  fi
    14  CGO_ENABLED=0 GOOS=windows GOARCH=amd64 golangci-lint run --deadline=10m --disable-all --exclude-use-default=false --enable=errcheck --enable=ineffassign --enable=govet --enable=golint --enable=unused --enable=structcheck --enable=varcheck --enable=deadcode --enable=unconvert --enable=goconst --enable=gosimple --enable=misspell --enable=staticcheck --enable=unparam --enable=prealloc --enable=nakedret --enable=typecheck $GOIMPORTS_OPTION $GOFMT_OPTION --skip-dirs=vendor/github.com/iovisor ./...