Packages

package lint

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

Type Members

  1. trait Diagnostic extends AnyRef

    A linter message reporting a code style violation.

    A linter message reporting a code style violation.

    It's idiomatic to implement a custom class that extends this trait for each unique category of linting messages. For example, if you have an "unused code" linter then you might want to create a class UnusedCode extends Diagnostic class with the appropriate context.

    Expensive values such as the message and explanation can be computed on-demand.

    Note

    for a Diagnostic that is associated with a specific rule use scalafix.lint.RuleDiagnostic.

  2. final case class LintID(rule: String, category: String) extends Product with Serializable

    A unique identifier for this category of lint diagnostics

    A unique identifier for this category of lint diagnostics

    The contract of id is that all diagnostics of the same "category" will have the same id. For example, the DisableSyntax rule has a unique ID for each category such as "noSemicolon" or "noTabs".

    rule

    the name of the rule that produced this diagnostic.

    category

    the sub-category within this rule, if any. Empty if the rule only reports diagnostics of a single category.

  3. sealed abstract class LintSeverity extends AnyRef
  4. final class RuleDiagnostic extends AnyRef

    A diagnostic that has been associated with a rule.

Deprecated Type Members

  1. type LintCategory = v0.LintCategory
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use Diagnostic instead

  2. type LintMessage = v0.LintMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use Diagnostic instead

Value Members

  1. object Diagnostic
  2. object LintID extends Serializable
  3. object LintSeverity
  4. object RuleDiagnostic

Deprecated Value Members

  1. val LintCategory: v0.LintCategory.type
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use Diagnostic instead

  2. val LintMessage: v0.LintMessage.type
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use Diagnostic instead

Inherited from AnyRef

Inherited from Any

Ungrouped