diagnostic

package
v0.0.0-...-a161123 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Message string
}

A Diagnostic represents one specific problem diagnosed by a check.

type WithContext

type WithContext struct {
	Diagnostic  Diagnostic
	Check       string
	Remediation string
	Object      lintcontext.Object
}

WithContext puts a diagnostic in the context of which check emitted it, and which object it applied to.

func (*WithContext) FormatPlain

func (w *WithContext) FormatPlain(out io.Writer)

FormatPlain prints out the result to the given writer, without colors/special formatting.

func (*WithContext) FormatToTerminal

func (w *WithContext) FormatToTerminal(out io.Writer)

FormatToTerminal writes the result to the given writer, which is expected to support terminal-based formatting.

Jump to

Keyboard shortcuts

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