golint

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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 ':').

func Tasks

func Tasks(options ...Option) Task

Tasks creates the standard linting and formatting task group. Includes static-analysis, format, lint, and lint:fix tasks (with a lint-fix alias).

Types

type Option

type Option run.Option

Option extends run.Option for lint-specific configuration.

func SkipTests

func SkipTests() Option

SkipTests excludes test files from linting by adding --tests=false to golangci-lint.

Jump to

Keyboard shortcuts

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