object Rule

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rule
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def combine(rules: Seq[Rule]): Rule
  2. def constant(ruleName: String, patch: v0.Patch, index: SemanticdbIndex): Rule

    Creates a rule that always returns the same patch.

  3. lazy val empty: Rule
  4. def emptyConfigured: Configured[Rule]
  5. def emptyFromSemanticdbIndexOpt(index: Option[SemanticdbIndex]): Rule
  6. def linter(ruleName: String)(f: (RuleCtx) ⇒ List[v0.Diagnostic]): Rule

    Creates a linter.

  7. def merge(a: Rule, b: Rule): Rule

    Combine two rules into a single rule

Deprecated Value Members

  1. def semantic(ruleName: String)(f: (SemanticdbIndex) ⇒ (RuleCtx) ⇒ v0.Patch): (SemanticdbIndex) ⇒ Rule

    Creates a semantic rule.

    Creates a semantic rule.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.28) Use scalafix.v1.SemanticRule instead

  2. def syntactic(ruleName: String)(f: (RuleCtx) ⇒ v0.Patch): Rule

    Creates a syntactic rule.

    Creates a syntactic rule.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.28) Use scalafix.v1.SyntacticRule instead