File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7070 github.com/AlekSi/gocov-xml \
7171 github.com/axw/gocov/gocov \
7272 github.com/mitchellh/gox \
73+ golang.org/x/lint \
7374 && curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin $GOLANGCI_LINT_VERSION \
7475 && pip3 install --disable-pip-version-check --no-cache-dir azure-cli==${AZCLI_VERSION} shyaml \
7576 && apt-get purge --auto-remove -y libffi-dev python3-dev python3-pip \
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- # Mandatory tests
4- echo -e " \033[0;31mManadatory Linters: These must pass\033[0m"
5- gometalinter --vendor --tests --deadline=600s --disable-all \
6- --enable=gofmt \
7- --enable=misspell \
8- --enable=deadcode \
9- --enable=ineffassign \
10- --enable=gosimple \
11- --enable=vet \
12- ./...
13-
143mandatory=$?
154
16- # Optional tests
17- echo -e " \033[0;32mOptional Linters: These should pass\033[0m"
18- gometalinter --vendor --tests --deadline=600s --disable-all \
19- --enable=golint \
20- ./...
5+ # Mandatory tests
6+ echo -e " \033[0;31mManadatory Linters: These must pass\033[0m"
7+ golangci-lint --disable-all \
8+ -E=misspell \
9+ -E=deadcode \
10+ -E=ineffassign \
11+ -E=gosimple \
12+ -E=vet \
13+ -E=gofmt \
14+ -E=golint \
15+ run ./...
2116
2217exit $mandatory
You can’t perform that action at this time.
0 commit comments