Skip to content

Commit

Permalink
feat(gotools): ✨ add gotools for running go specific actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldonhull committed Aug 11, 2021
1 parent 9e08db9 commit ef97514
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"conventionalCommits.scopes": [
"gotools"
]
}
17 changes: 17 additions & 0 deletions gotools/gotools.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Provide Go linting, formatting and other basic tooling.
package gotools

import (
"github.com/pterm/pterm"
"github.com/sheldonhull/magetools/tooling"
)

// Lint runs golangci-lint tooling.
func Lint() error {
pterm.Info.Println("Running golangci-lint")
if err := tooling.RunTool("golangci-lint", "--enable-all"); err != nil {
return err
}

return nil
}

0 comments on commit ef97514

Please sign in to comment.