github.com/ryanbennettvoid/go-swagger@v0.18.1-0.20190104015444-3854bbbe2392/hack/check.sh (about)

     1  #!/bin/bash
     2  
     3  set -o errexit
     4  set -o pipefail
     5  
     6  gometalinter \
     7    --exclude='error return value not checked.*(Close|Log|Print|Shutdown).*\(errcheck\)$' \
     8    --skip=fixtures \
     9    --skip=examples \
    10    --tests \
    11    --vendor \
    12    --disable=aligncheck \
    13    --disable=gotype \
    14    --disable=goconst \
    15    --cyclo-over=20 \
    16    --deadline=300s \
    17    ./cmd/...
    18  
    19  gometalinter \
    20    --exclude='^generator/bindata\.go.*$' \
    21    --exclude='error return value not checked.*(Close|Log|Print|RemoveAll|Setenv|Shutdown).*\(errcheck\)$' \
    22    --exclude='^scan/schema\.go.*pkg can be fmt.Stringer \(interfacer\)$' \
    23    --skip=fixtures \
    24    --skip=examples \
    25    --skip=cmd \
    26    --tests \
    27    --vendor \
    28    --disable=aligncheck \
    29    --disable=gotype \
    30    --disable=goconst \
    31    --disable=gocyclo \
    32    --deadline=300s \
    33    ./...