Skip to content

Commit 6c671ae

Browse files
feat(lint): differentiate between manadatory and optional linters (#49)
1 parent 24c92fd commit 6c671ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • rootfs/usr/local/bin

rootfs/usr/local/bin/lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Mandatory tests
4+
echo -e "\033[0;31mManadatory Linters: These must pass\033[0m"
45
gometalinter --vendor --tests --deadline=20s --disable-all \
56
--enable=gofmt \
67
--enable=misspell \
@@ -13,6 +14,7 @@ gometalinter --vendor --tests --deadline=20s --disable-all \
1314
mandatory=$?
1415

1516
# Optional tests
17+
echo -e "\033[0;32mOptional Linters: These should pass\033[0m"
1618
gometalinter --vendor --tests --deadline=20s --disable-all \
1719
--enable=golint \
1820
./...

0 commit comments

Comments
 (0)