Documentation
¶
Overview ¶
Package rulesdoc reads the architecture rules from the test sources of internal/archtest and renders their reference page.
Index ¶
Constants ¶
const SelfTestHelper = "flagged"
SelfTestHelper is the helper every self-test calls; a test that calls it is no rule.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Allowlist ¶
Allowlist is a package-level map[string]string, or slice of a struct of strings and ints, that a rule test reaches from its body.
type Entry ¶
Entry is one allowlist entry: its strings, and its reason and triage when the list has reasons.
type Rule ¶
type Rule struct {
Test string
File string
// Rule is the sentence after "<Test> checks that " in the test's doc
// comment, or empty when the comment is missing or worded otherwise.
Rule string
Allowlists []Allowlist
}
Rule is a rule test: a test of the package that does not call SelfTestHelper.