speca

package
v1.7.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmptyReference

func NewEmptyReference() models.Reference

func NewReference

func NewReference(file string, line int, offset int) models.Reference

Types

type Allow

type Allow struct {
	DepOnAnyVendor Referable[bool]
	DeepScan       Referable[bool]
}

type Component

type Component struct {
	Name                  Referable[string]
	DeepScan              Referable[bool]
	ResolvedPaths         []Referable[models.ResolvedPath]
	AllowedProjectImports []Referable[models.ResolvedPath]
	AllowedVendorGlobs    []Referable[models.Glob]
	MayDependOn           []Referable[string]
	CanUse                []Referable[string]
	SpecialFlags          SpecialFlags
}

type Integrity

type Integrity struct {
	DocumentNotices []Notice
	Suggestions     []Notice
}

type Notice

type Notice struct {
	Notice error
	Ref    models.Reference
}

type Referable added in v1.7.1

type Referable[T any] struct {
	// contains filtered or unexported fields
}

func NewEmptyReferable added in v1.7.1

func NewEmptyReferable[T any](value T) Referable[T]

func NewReferable added in v1.7.1

func NewReferable[T any](value T, ref models.Reference) Referable[T]

func (Referable[T]) Reference added in v1.7.1

func (s Referable[T]) Reference() models.Reference

func (Referable[T]) Value added in v1.7.1

func (s Referable[T]) Value() T

type Spec

type Spec struct {
	RootDirectory       Referable[string]
	WorkingDirectory    Referable[string]
	ModuleName          Referable[string]
	Allow               Allow
	Components          []Component
	Exclude             []Referable[models.ResolvedPath]
	ExcludeFilesMatcher []Referable[*regexp.Regexp]
	Integrity           Integrity
}

type SpecialFlags

type SpecialFlags struct {
	AllowAllProjectDeps Referable[bool]
	AllowAllVendorDeps  Referable[bool]
}

Jump to

Keyboard shortcuts

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