nurse/magefiles/lint.go

22 lines
300 B
Go
Raw Permalink Normal View History

2022-09-27 20:19:27 +00:00
package main
import (
"context"
"github.com/magefile/mage/mg"
"github.com/magefile/mage/sh"
)
func Lint(ctx context.Context) {
mg.CtxDeps(ctx, Format, LintGo)
}
func LintGo(ctx context.Context) (err error) {
return sh.RunV(
"golangci-lint",
"run",
"-v",
"--issues-exit-code=1",
)
}