analysis

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package analysis holds the Go analyzers of the SDK and runs them through go vet -vettool, as Analyzers in contract.md defines. Core's just lint and the check of extensionrepo run the same rules, at the Nicely version that the module selects.

Add a rule as a package of its own beside runnerdiscard, then list it in Analyzers. Its cases repeat the past mistake that the rule prevents, and fail first without the rule.

Index

Constants

This section is empty.

Variables

Analyzers are the rules that nicelyvet runs.

Functions

func Check

func Check(patterns ...string) error

Check builds nicelyvet from the Nicely module that the current module selects, then runs it on patterns through go vet -vettool. It builds into a scratch folder, which it removes. The extensionrepo package imports this package, so go mod tidy keeps the dependencies of the build.

func Main

func Main()

Main serves go vet -vettool, which gives one package to each call. It does not load packages itself, so `go run` of nicelyvet on a package path fails.

Types

This section is empty.

Directories

Path Synopsis
Package callerenv refuses a read of the whole environment of the caller in the test kit, the repository gates, and the TLC runner.
Package callerenv refuses a read of the whole environment of the caller in the test kit, the repository gates, and the TLC runner.
cmd
nicelyvet command
Command nicelyvet runs the analyzers of the SDK for go vet -vettool.
Command nicelyvet runs the analyzers of the SDK for go vet -vettool.
Package runnerdiscard refuses io.Discard as the Stdout or Stderr of a runner.Program, as Analyzers in contract.md defines.
Package runnerdiscard refuses io.Discard as the Stdout or Stderr of a runner.Program, as Analyzers in contract.md defines.

Jump to

Keyboard shortcuts

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