1
0
Fork 0
mirror of https://github.com/vbatts/git-validation.git synced 2024-11-25 09:35:40 +00:00

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: [] branches_ignore: []
jobs: jobs:
build: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:

View file

@ -57,7 +57,7 @@ func Vet() error {
func Lint() error { func Lint() error {
mg.Deps(InstallToolsLint) mg.Deps(InstallToolsLint)
fmt.Println("Linting...") 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.Stdout = Stdout
cmd.Stderr = Stderr cmd.Stderr = Stderr
return cmd.Run() return cmd.Run()
@ -97,7 +97,7 @@ func InstallTools() error {
func InstallToolsLint() error { func InstallToolsLint() error {
fmt.Println("Installing Deps...") 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.Stdout = Stdout
cmd.Stderr = Stderr cmd.Stderr = Stderr
return cmd.Run() return cmd.Run()