From 0911402926c7468975a7aa5bc1dd35231fc85753 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Sat, 23 May 2020 11:12:11 -0700 Subject: [PATCH] Update golangci action Signed-off-by: Chris Cummer --- .github/workflows/golangci-lint.yml | 5 +- Makefile | 74 ++++++++++++++--------------- 2 files changed, 39 insertions(+), 40 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 2154755f..86cbd27c 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -13,8 +13,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: golangci-lint - uses: golangci/golangci-lint-action@v0.2.0 + uses: golangci/golangci-lint-action@v1 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.27 - args: ./... + version: v1.26 \ No newline at end of file diff --git a/Makefile b/Makefile index b5335541..901f8921 100644 --- a/Makefile +++ b/Makefile @@ -86,48 +86,48 @@ install: @echo "${APP} installed into ${INSTALLPATH}" ## lint: runs a number of code quality checks against the source code -cilint: +lint: golangci-lint run -lint: - @echo "\033[35mhttps://github.com/kisielk/errcheck\033[0m" - errcheck ./app - errcheck ./cfg - errcheck ./flags - errcheck ./help - errcheck ./logger - errcheck ./modules/... - errcheck ./utils - errcheck ./view - errcheck ./wtf - errcheck ./main.go +# lint: +# @echo "\033[35mhttps://github.com/kisielk/errcheck\033[0m" +# errcheck ./app +# errcheck ./cfg +# errcheck ./flags +# errcheck ./help +# errcheck ./logger +# errcheck ./modules/... +# errcheck ./utils +# errcheck ./view +# errcheck ./wtf +# errcheck ./main.go - @echo "\033[35mhttps://golang.org/cmd/vet/k\033[0m" - go vet ./app - go vet ./cfg - go vet ./flags - go vet ./help - go vet ./logger - go vet ./modules/... - go vet ./utils - go vet ./view - go vet ./wtf - go vet ./main.go +# @echo "\033[35mhttps://golang.org/cmd/vet/k\033[0m" +# go vet ./app +# go vet ./cfg +# go vet ./flags +# go vet ./help +# go vet ./logger +# go vet ./modules/... +# go vet ./utils +# go vet ./view +# go vet ./wtf +# go vet ./main.go - @echo "\033[35m# https://staticcheck.io/docs/k\033[0m" - staticcheck ./app - staticcheck ./cfg - staticcheck ./flags - staticcheck ./help - staticcheck ./logger - staticcheck ./modules/... - staticcheck ./utils - staticcheck ./view - staticcheck ./wtf - staticcheck ./main.go +# @echo "\033[35m# https://staticcheck.io/docs/k\033[0m" +# staticcheck ./app +# staticcheck ./cfg +# staticcheck ./flags +# staticcheck ./help +# staticcheck ./logger +# staticcheck ./modules/... +# staticcheck ./utils +# staticcheck ./view +# staticcheck ./wtf +# staticcheck ./main.go - @echo "\033[35m# https://github.com/mdempsky/unconvert\033[0m" - unconvert ./... +# @echo "\033[35m# https://github.com/mdempsky/unconvert\033[0m" +# unconvert ./... ## loc: displays the lines of code (LoC) count loc: