Package

scalafix

v0

Permalink

package v0

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

Type Members

  1. type CustomMessage[T] = config.CustomMessage[T]

    Permalink
    Definition Classes
    ScalafixSyntax
  2. final case class Database(documents: Seq[Document]) extends Product with Serializable

    Permalink
  3. final case class Denotation(flags: Long, name: String, signature: String, names: List[ResolvedName], tpe: Option[Type]) extends HasFlags with Product with Serializable

    Permalink
  4. final case class Document(input: Input, language: String, names: List[ResolvedName], messages: List[Message], symbols: List[ResolvedSymbol], synthetics: List[Synthetic]) extends Product with Serializable

    Permalink
  5. trait Flags extends AnyRef

    Permalink
  6. trait HasFlags extends AnyRef

    Permalink
  7. type LintCategory = lint.LintCategory

    Permalink
    Definition Classes
    ScalafixSyntax
  8. type LintMessage = lint.LintMessage

    Permalink
    Definition Classes
    ScalafixSyntax
  9. final case class Message(position: Position, severity: Severity, text: String) extends Product with Serializable

    Permalink
  10. type Patch = patch.Patch

    Permalink
    Definition Classes
    ScalafixSyntax
  11. final case class ResolvedName(position: Position, symbol: scala.meta.Symbol, isDefinition: Boolean) extends Product with Serializable

    Permalink
  12. final case class ResolvedSymbol(symbol: scala.meta.Symbol, denotation: Denotation) extends Product with Serializable

    Permalink
  13. abstract class Rule extends AnyRef

    Permalink

    A Scalafix Rule.

    A Scalafix Rule.

    To provide automatic fixes for this rule, override the fix method. Example:

    object ReverseNames extends Rule("ReverseNames") {
      override def fix(ctx: RuleCtx) =
        ctx.tree.collect {
          case name @ Name(value) => ctx.replaceTree(name, value.reverse)
        }.asPatch
    }

    To report violations of this rule (without automatic fix), override the check method. Example:

    // example syntactic linter
    object NoNulls extends Rule("NoNulls") {
      val error = LintCategory.error("Nulls are not allowed.")
      override def check(ctx: RuleCtx): List[LintMessage] = ctx.tree.collect {
        case nil @ q"null" => error.at(nil.pos)
      }
    }
  14. trait RuleCtx extends PatchOps

    Permalink
  15. type RuleName = rule.RuleName

    Permalink
    Definition Classes
    ScalafixSyntax
  16. abstract class SemanticRule extends Rule

    Permalink
  17. trait SemanticdbIndex extends SemanticContext

    Permalink

    An index for looking up data in a scala.meta.Database.

  18. sealed trait Severity extends Product

    Permalink
  19. final case class Synthetic(position: Position, text: String, names: List[ResolvedName]) extends Product with Serializable

    Permalink
  20. implicit class XtensionOptionPatch extends AnyRef

    Permalink
    Definition Classes
    ScalafixSyntax
  21. implicit class XtensionSeqPatch extends AnyRef

    Permalink
    Definition Classes
    ScalafixSyntax

Value Members

  1. val CustomMessage: config.CustomMessage.type

    Permalink
    Definition Classes
    ScalafixSyntax
  2. object Flags extends Flags

    Permalink
  3. val LintCategory: lint.LintCategory.type

    Permalink
    Definition Classes
    ScalafixSyntax
  4. val Patch: patch.Patch.type

    Permalink
    Definition Classes
    ScalafixSyntax
  5. object ResolvedName extends Serializable

    Permalink
  6. object Rule

    Permalink
  7. object RuleCtx

    Permalink
  8. val RuleName: rule.RuleName.type

    Permalink
    Definition Classes
    ScalafixSyntax
  9. object SemanticdbIndex

    Permalink
  10. object Severity

    Permalink

Inherited from ScalafixSyntax

Inherited from AnyRef

Inherited from Any

Ungrouped