object Rule
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Rule
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- def combine(rules: Seq[Rule]): Rule
-
def
constant(ruleName: String, patch: v0.Patch, index: SemanticdbIndex): Rule
Creates a rule that always returns the same patch.
- lazy val empty: Rule
- def emptyConfigured: Configured[Rule]
- def emptyFromSemanticdbIndexOpt(index: Option[SemanticdbIndex]): Rule
-
def
linter(ruleName: String)(f: (RuleCtx) ⇒ List[v0.Diagnostic]): Rule
Creates a linter.
-
def
merge(a: Rule, b: Rule): Rule
Combine two rules into a single rule
-
def
semantic(ruleName: String)(f: (SemanticdbIndex) ⇒ (RuleCtx) ⇒ v0.Patch): (SemanticdbIndex) ⇒ Rule
Creates a semantic rule.
-
def
syntactic(ruleName: String)(f: (RuleCtx) ⇒ v0.Patch): Rule
Creates a syntactic rule.