Skip to content

Commit cc113c2

Browse files
committed
feat(docker-go-dev): use golangci
1 parent b2b85fa commit cc113c2

2 files changed

Lines changed: 12 additions & 16 deletions

File tree

rootfs/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ RUN \
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 \

rootfs/usr/local/bin/lint

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
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-
143
mandatory=$?
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

2217
exit $mandatory

0 commit comments

Comments
 (0)