Documentation
¶
Index ¶
- Constants
- func IsProvisional(spec *spec.Specification, entity types.Entity) bool
- func Pipeline(cxt context.Context, baseRoot string, headRoot string, docPaths []string, ...) (violations map[string][]Violation, err error)
- type ComparableEntity
- type EntityState
- type Policy
- type State
- type Violation
- type ViolationType
Constants ¶
View Source
const ( PolicyNone Policy = "none" PolicyLoose = "loose" PolicyStrict = "strict" )
Variables ¶
This section is empty.
Functions ¶
func IsProvisional ¶
func IsProvisional(spec *spec.Specification, entity types.Entity) bool
Types ¶
type EntityState ¶
type Violation ¶
type Violation struct {
Type ViolationType
Entity types.Entity
Path string
Line int
}
type ViolationType ¶
type ViolationType uint8
const ( ViolationTypeNone ViolationType = 0 ViolationTypeNonProvisional ViolationType = 1 << (iota - 1) ViolationTypeNotIfDefd )
func (ViolationType) Has ¶
func (vt ViolationType) Has(o ViolationType) bool
func (ViolationType) String ¶
func (vt ViolationType) String() string
Click to show internal directories.
Click to hide internal directories.