mirror of
https://github.com/vbatts/git-validation.git
synced 2024-11-22 08:05:39 +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:
parent
be39cec199
commit
710b93575c
2 changed files with 3 additions and 3 deletions
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
@ -5,7 +5,7 @@ on:
|
|||
branches_ignore: []
|
||||
|
||||
jobs:
|
||||
build:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue