bufcheck

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintCheckers

func PrintCheckers(writer io.Writer, checkers []Checker, asJSON bool) (retErr error)

PrintCheckers prints the checkers to the writer.

Types

type Checker

type Checker interface {
	json.Marshaler

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

Checker is a checker.

Directories

Path Synopsis
Package bufbreaking contains the breaking change detection functionality.
Package bufbreaking contains the breaking change detection functionality.
Package buflint contains the linting functionality.
Package buflint contains the linting functionality.

Jump to

Keyboard shortcuts

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