supabase-operator/magefiles/cleanup.go

24 lines
358 B
Go
Raw Normal View History

package main
import "github.com/magefile/mage/mg"
func Validate() {
mg.Deps(Fmt, Lint)
}
func Fmt() error {
return RunTool(tools[Gofumpt], "-l", "-w", ".")
}
func Vet() error {
return Go("vet", "./...")
}
func Lint() error {
return RunTool(tools[GolangciLint], "run")
}
func LintFix() error {
return RunTool(tools[GolangciLint], "run", "--fix")
}