rulechecker

package
v0.0.0-...-a278cc6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImportChart

type ImportChart map[string][]string

type RuleChecker

type RuleChecker struct {
	Rules       []parser.Rule
	ImportChart ImportChart
	Violations  []Violation
}

func New

func New(rules []parser.Rule, importChart ImportChart) RuleChecker

func (*RuleChecker) Check

func (rc *RuleChecker) Check() (isValid bool)

type Violation

type Violation struct {
	Filename     string
	CannotImport string
	ImportLine   string
}

Jump to

Keyboard shortcuts

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