Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLicensesTask ¶
func CheckLicensesTask() Task
CheckLicensesTask creates a task that verifies all dependencies have allowable licenses using the bouncer tool. Requires bouncer to be configured in .binny.yaml.
func FormatTask ¶
func FormatTask() Task
FormatTask creates a task that formats Go code with golangci-lint's formatters (gofmt and whatever else the project's golangci config enables) and runs go mod tidy. When the project config doesn't enable an import-organizing formatter (gci or goimports), we fall back to gosimports so imports are still grouped.
func LintFixTask ¶
func LintFixTask(options ...Option) Task
LintFixTask creates a task that formats code and then runs golangci-lint with the --fix flag to automatically fix linting issues where possible. The legacy `lint-fix` name is kept as an alias.
func LintTask ¶ added in v0.7.0
func LintTask(options ...Option) Task
LintTask creates a task that runs golangci-lint without any fixers (no formatting, no --fix) — just the lint checks.
func StaticAnalysisTask ¶
func StaticAnalysisTask(options ...Option) Task
StaticAnalysisTask creates a task that runs golangci-lint and bouncer for license checking. Also verifies go.mod is tidy (Go 1.23+) and checks for problematic filenames (containing ':').