mage: update golangci-lint and ignore stdlib from being checked

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2023-10-23 08:34:37 -04:00
parent be39cec199
commit 710b93575c
Signed by: vbatts
GPG Key ID: E30EFAA812C6E5ED
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ on:
branches_ignore: []
jobs:
build:
lint:
runs-on: ubuntu-latest
strategy:
matrix:

View File

@ -57,7 +57,7 @@ func Vet() error {
func Lint() error {
mg.Deps(InstallToolsLint)
fmt.Println("Linting...")
cmd := exec.Command("golangci-lint", "run")
cmd := exec.Command("golangci-lint", "run", "--skip-dirs", "(^|/).gvm/gos($|/)", "--skip-dirs", "(^|/)go/pkg/mod($|/)")
cmd.Stdout = Stdout
cmd.Stderr = Stderr
return cmd.Run()
@ -97,7 +97,7 @@ func InstallTools() error {
func InstallToolsLint() error {
fmt.Println("Installing Deps...")
cmd := exec.Command("go", "install", "github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2")
cmd := exec.Command("go", "install", "github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0")
cmd.Stdout = Stdout
cmd.Stderr = Stderr
return cmd.Run()