checks

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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 added in v0.4.2

func GolangCiLintWithOptions(opts GolangCiLintOptions) config.Task

GolangCiLintWithOptions will configure golangci-lint in the build with options.

func Revive

func Revive() config.Task

Revive will configure revive in the build.

func Staticcheck

func Staticcheck() config.Task

Staticcheck will configure staticcheck in the build.

Types

type GolangCiLintOptions added in v0.4.2

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 added in v0.9.0

type GolangCiLintParam func(*GolangCiLintOptions)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL