mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Update golangci action
Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
parent
86c7e127aa
commit
0911402926
5
.github/workflows/golangci-lint.yml
vendored
5
.github/workflows/golangci-lint.yml
vendored
@ -13,8 +13,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v0.2.0
|
uses: golangci/golangci-lint-action@v1
|
||||||
with:
|
with:
|
||||||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
# 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
|
version: v1.26
|
||||||
args: ./...
|
|
74
Makefile
74
Makefile
@ -86,48 +86,48 @@ install:
|
|||||||
@echo "${APP} installed into ${INSTALLPATH}"
|
@echo "${APP} installed into ${INSTALLPATH}"
|
||||||
|
|
||||||
## lint: runs a number of code quality checks against the source code
|
## lint: runs a number of code quality checks against the source code
|
||||||
cilint:
|
lint:
|
||||||
golangci-lint run
|
golangci-lint run
|
||||||
|
|
||||||
lint:
|
# lint:
|
||||||
@echo "\033[35mhttps://github.com/kisielk/errcheck\033[0m"
|
# @echo "\033[35mhttps://github.com/kisielk/errcheck\033[0m"
|
||||||
errcheck ./app
|
# errcheck ./app
|
||||||
errcheck ./cfg
|
# errcheck ./cfg
|
||||||
errcheck ./flags
|
# errcheck ./flags
|
||||||
errcheck ./help
|
# errcheck ./help
|
||||||
errcheck ./logger
|
# errcheck ./logger
|
||||||
errcheck ./modules/...
|
# errcheck ./modules/...
|
||||||
errcheck ./utils
|
# errcheck ./utils
|
||||||
errcheck ./view
|
# errcheck ./view
|
||||||
errcheck ./wtf
|
# errcheck ./wtf
|
||||||
errcheck ./main.go
|
# errcheck ./main.go
|
||||||
|
|
||||||
@echo "\033[35mhttps://golang.org/cmd/vet/k\033[0m"
|
# @echo "\033[35mhttps://golang.org/cmd/vet/k\033[0m"
|
||||||
go vet ./app
|
# go vet ./app
|
||||||
go vet ./cfg
|
# go vet ./cfg
|
||||||
go vet ./flags
|
# go vet ./flags
|
||||||
go vet ./help
|
# go vet ./help
|
||||||
go vet ./logger
|
# go vet ./logger
|
||||||
go vet ./modules/...
|
# go vet ./modules/...
|
||||||
go vet ./utils
|
# go vet ./utils
|
||||||
go vet ./view
|
# go vet ./view
|
||||||
go vet ./wtf
|
# go vet ./wtf
|
||||||
go vet ./main.go
|
# go vet ./main.go
|
||||||
|
|
||||||
@echo "\033[35m# https://staticcheck.io/docs/k\033[0m"
|
# @echo "\033[35m# https://staticcheck.io/docs/k\033[0m"
|
||||||
staticcheck ./app
|
# staticcheck ./app
|
||||||
staticcheck ./cfg
|
# staticcheck ./cfg
|
||||||
staticcheck ./flags
|
# staticcheck ./flags
|
||||||
staticcheck ./help
|
# staticcheck ./help
|
||||||
staticcheck ./logger
|
# staticcheck ./logger
|
||||||
staticcheck ./modules/...
|
# staticcheck ./modules/...
|
||||||
staticcheck ./utils
|
# staticcheck ./utils
|
||||||
staticcheck ./view
|
# staticcheck ./view
|
||||||
staticcheck ./wtf
|
# staticcheck ./wtf
|
||||||
staticcheck ./main.go
|
# staticcheck ./main.go
|
||||||
|
|
||||||
@echo "\033[35m# https://github.com/mdempsky/unconvert\033[0m"
|
# @echo "\033[35m# https://github.com/mdempsky/unconvert\033[0m"
|
||||||
unconvert ./...
|
# unconvert ./...
|
||||||
|
|
||||||
## loc: displays the lines of code (LoC) count
|
## loc: displays the lines of code (LoC) count
|
||||||
loc:
|
loc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user