Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GolangCiLint ¶
func GolangCiLint(params ...GolangCiLintParam) config.Task
GolangCiLint will configure golangci-lint in the build.
func GolangCiLintWithOptions ¶
func GolangCiLintWithOptions(opts GolangCiLintOptions) config.Task
GolangCiLintWithOptions will configure golangci-lint in the build with options.
func Staticcheck ¶
Staticcheck will configure staticcheck in the build.
Types ¶
type GolangCiLintOptions ¶
type GolangCiLintOptions struct { // New when set will check only new code. New bool // Fix when set will try to fix issues. Fix bool // Version is a version of golangci-lint to use. Version string }
GolangCiLintOptions contains options for GolangCi Lint.
type GolangCiLintParam ¶
type GolangCiLintParam func(*GolangCiLintOptions)
Click to show internal directories.
Click to hide internal directories.