package lint
- Alphabetic
- By Inheritance
- lint
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- 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.
- 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.
- sealed abstract class LintSeverity extends AnyRef
- final class RuleDiagnostic extends AnyRef
A diagnostic that has been associated with a rule.
Deprecated Type Members
- type LintCategory = v0.LintCategory
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use Diagnostic instead
- type LintMessage = v0.LintMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use Diagnostic instead
Value Members
- object Diagnostic
- object LintID extends Serializable
- object LintSeverity
- object RuleDiagnostic
Deprecated Value Members
- val LintCategory: v0.LintCategory.type
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use Diagnostic instead
- val LintMessage: v0.LintMessage.type
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use Diagnostic instead