Package

scalafix

v0

Permalink

package v0

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. v0
  2. Api
  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
    Api
  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]) extends HasFlags with Product with Serializable

    Permalink
  4. type Diagnostic = lint.Diagnostic

    Permalink
    Definition Classes
    Api
  5. 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
  6. trait Flags extends AnyRef

    Permalink
  7. trait HasFlags extends AnyRef

    Permalink
  8. final case class LintCategory(id: String, explanation: String, severity: LintSeverity) extends Product with Serializable

    Permalink

    A unique identifier for one kind of a linter message.

    A unique identifier for one kind of a linter message.

    id

    a string ID for this message, typically the name of the assigned variable. If id is empty, then the name of the rewrite reporting this LintCategory is used as id.

    explanation

    An optional explanation for this kind of message.

    severity

    The default category this message should get reported to. Note that users can configure/override the default category.

  9. final case class LintMessage(message: String, position: scala.meta.Position, category: LintCategory) extends Diagnostic with Product with Serializable

    Permalink

    An observation of a LintCategory at a particular position

    An observation of a LintCategory at a particular position

    message

    The message to display to the user. If empty, LintID.explanation is used instead.

    position

    Optionally place a caret under a location in a source file. For an empty position use Position.None.

    category

    the LintCategory associated with this message.

  10. final case class Message(position: Position, severity: Severity, text: String) extends Product with Serializable

    Permalink
  11. type Patch = patch.Patch

    Permalink
    Definition Classes
    Api
  12. final case class ResolvedName(position: Position, symbol: Symbol, isDefinition: Boolean) extends Product with Serializable

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

    Permalink
  14. 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[Diagnostic] = ctx.tree.collect {
        case nil @ q"null" => error.at(nil.pos)
      }
    }
  15. trait RuleCtx extends PatchOps

    Permalink
  16. type RuleName = rule.RuleName

    Permalink
    Definition Classes
    Api
  17. abstract class SemanticRule extends Rule

    Permalink
  18. trait SemanticdbIndex extends SemanticContext

    Permalink

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

  19. sealed trait Severity extends Product

    Permalink
  20. sealed trait Signature extends AnyRef

    Permalink
  21. sealed trait Symbol extends Product

    Permalink
  22. final class SymbolMatcher extends AnyRef

    Permalink

    Utility to match against a particular symbol.

    Utility to match against a particular symbol.

    Can be used both in pattern matching and regular condition testing.

    val myMethod = SymbolMatcher(Symbol("_root_.myMethod"))
    myMethod.matches(Tree)
    Tree match {
      case myMethod(_) => // act on tree
    }
    myMethod.matches(Tree)
  23. final case class Synthetic(position: Position, text: String, names: List[ResolvedName]) extends Product with Serializable

    Permalink
  24. implicit class XtensionOptionPatch extends AnyRef

    Permalink
    Definition Classes
    Api
  25. implicit class XtensionScalafixProductInspect extends AnyRef

    Permalink
    Definition Classes
    Api
  26. implicit class XtensionSeqPatch extends AnyRef

    Permalink
    Definition Classes
    Api

Value Members

  1. val CustomMessage: config.CustomMessage.type

    Permalink
    Definition Classes
    Api
  2. val Diagnostic: lint.Diagnostic.type

    Permalink
    Definition Classes
    Api
  3. object Flags extends Flags

    Permalink
  4. object LintCategory extends Serializable

    Permalink
  5. val Patch: patch.Patch.type

    Permalink
    Definition Classes
    Api
  6. object ResolvedName extends Serializable

    Permalink
  7. object Rule

    Permalink
  8. object RuleCtx

    Permalink
  9. val RuleName: rule.RuleName.type

    Permalink
    Definition Classes
    Api
  10. object SemanticdbIndex

    Permalink
  11. object Severity

    Permalink
  12. object Signature

    Permalink
  13. object Symbol

    Permalink
  14. object SymbolMatcher

    Permalink

Inherited from Api

Inherited from AnyRef

Inherited from Any

Ungrouped