c

scalafix.rule

SemanticRule

abstract class SemanticRule extends Rule

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

Instance Constructors

  1. new SemanticRule(index: SemanticdbIndex, name: RuleName)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit val ImplicitSemanticdbIndex: SemanticdbIndex
  5. final def apply(ctx: RuleCtx, patches: Map[RuleName, Patch]): String
    Definition Classes
    Rule
  6. final def apply(ctx: RuleCtx, patch: Patch): String
    Definition Classes
    Rule
  7. final def apply(input: String): String
    Definition Classes
    Rule
  8. final def apply(input: scala.meta.Input, config: internal.config.ScalafixConfig = ScalafixConfig.default): String
    Definition Classes
    Rule
  9. final def apply(ctx: RuleCtx): String

    Returns string output of applying this single patch.

    Returns string output of applying this single patch.

    Definition Classes
    Rule
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def check(ctx: RuleCtx): Seq[LintMessage]

    Returns linter messages to report violations of this rule.

    Returns linter messages to report violations of this rule.

    Definition Classes
    Rule
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def diff(ctx: RuleCtx, patch: Patch): String
    Attributes
    protected
    Definition Classes
    Rule
  14. final def diff(ctx: RuleCtx): String

    Returns unified diff from applying this patch

    Returns unified diff from applying this patch

    Definition Classes
    Rule
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def fix(ctx: RuleCtx): Patch

    Returns a patch to fix violations of this rule.

    Returns a patch to fix violations of this rule.

    Definition Classes
    Rule
  19. def fixWithName(ctx: RuleCtx): Map[RuleName, Patch]
    Attributes
    protected[scalafix]
    Definition Classes
    Rule
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  22. def init(config: Conf): Configured[Rule]

    Initialize this rule with the given user configuration.

    Initialize this rule with the given user configuration.

    This method is called once by scalafix before rule is called. Use this method to either read custom configuration or to build expensive indices.

    config

    The .scalafix.conf configuration.

    returns

    the initialized rule or an error. If no initialization is needed, return Configured.Ok(this).

    Definition Classes
    Rule
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def merge(other: Rule): Rule

    Combine this rule with another rule.

    Combine this rule with another rule.

    Definition Classes
    Rule
  25. final def name: RuleName
    Definition Classes
    Rule
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  29. def semanticOption: Option[SemanticdbIndex]
    Definition Classes
    SemanticRuleRule
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. final def toString(): String
    Definition Classes
    Rule → AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. final def andThen(other: Rule): Rule
    Definition Classes
    Rule
    Annotations
    @deprecated
    Deprecated

    (Since version 0.5.0) Renamed to merge.

  2. def mirror: SemanticdbIndex
    Attributes
    protected
    Annotations
    @deprecated
    Deprecated

    (Since version 0.5.0) Renamed to index.

  3. def sctx: SemanticdbIndex
    Attributes
    protected
    Annotations
    @deprecated
    Deprecated

    (Since version 0.5.0) Renamed to index.

  4. def semanticCtx: SemanticdbIndex
    Attributes
    protected
    Annotations
    @deprecated
    Deprecated

    (Since version 0.5.0) Renamed to index.

Inherited from Rule

Inherited from AnyRef

Inherited from Any

Ungrouped