Back to

Package bufcheck

Latest Go to latest

The latest major version is .

Published: Jul 24, 2020 | License: Apache-2.0 | Module:


Package bufcheck contains the implementations of the lint and breaking change detection checkers.

There is a lot of shared logic between the two, and originally they were actually combined into one logical entity (where some checks happened to be linters, and some checks happen to be breaking change detectors), so some of this is historical.



var AllCheckerFormatStrings = []string{

AllCheckerFormatStrings is all checker format strings.

func PrintCheckers

func PrintCheckers(writer io.Writer, checkers []Checker, formatString string) (retErr error)

PrintCheckers prints the checkers to the writer.

The empty string defaults to text.

type Checker

type Checker interface {

	// ID returns the ID of the Checker.
	ID() string
	// Categories returns the categories of the Checker.
	// Sorted.
	Categories() []string
	// Purpose returns the purpose of the Checker.
	// Full sentence.
	Purpose() string

Checker is a checker.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier