Skip to content

Commit

Permalink
Merge pull request #62 from vbatts/lint
Browse files Browse the repository at this point in the history
mage: update golangci-lint and ignore stdlib from being checked
  • Loading branch information
vbatts authored Oct 23, 2023
2 parents be39cec + 710b935 commit 2f784a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches_ignore: []

jobs:
build:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
4 changes: 2 additions & 2 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 2f784a1

Please sign in to comment.