check

package
v0.0.0-...-73df0bb Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check interface {
	Description() Description
	Check() ([]Suggestion, error)
	IsEnabled() bool
}

type Config

type Config struct {
	Disable bool `yaml:"disable"`
}

func (Config) IsEnabled

func (c Config) IsEnabled() bool

type Context

type Context struct {
	// contains filtered or unexported fields
}

func NewRootContext

func NewRootContext(desc string) Context

func (Context) Nested

func (c Context) Nested(desc string) Context

func (Context) String

func (c Context) String() string

type DashedName

type DashedName struct {
	Config
	// contains filtered or unexported fields
}

func NewDashedName

func NewDashedName(context Context, name string, config Config) DashedName

func (DashedName) Check

func (c DashedName) Check() ([]Suggestion, error)

func (DashedName) Description

func (c DashedName) Description() Description

type Description

type Description struct {
	Context_   Context
	Purpose_   string
	Reasoning_ string
}

func (Description) Context

func (d Description) Context() Context

func (Description) Purpose

func (d Description) Purpose() string

type Simple

type Simple struct {
	Context_ Context

	Problem_    string
	Resolution_ string

	Details_ string
}

func (Simple) Context

func (s Simple) Context() Context

func (Simple) Problem

func (s Simple) Problem() string

func (Simple) Resolution

func (s Simple) Resolution() string

type Suggestion

type Suggestion interface {
	Context() Context
	Problem() string
	Resolution() string
}

type Todo

type Todo struct {
	Config
	// contains filtered or unexported fields
}

func NewTodo

func NewTodo(context Context, content string, config Config) Todo

func (Todo) Check

func (c Todo) Check() ([]Suggestion, error)

func (Todo) Description

func (c Todo) Description() Description

Jump to

Keyboard shortcuts

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