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.
for a Diagnostic that is associated with a specific rule use scalafix.lint.RuleDiagnostic.
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".
the name of the rule that produced this diagnostic.
the sub-category within this rule, if any. Empty if the rule only reports diagnostics of a single category.
A diagnostic that has been associated with a rule.
(Since version 0.6.0) Use Diagnostic instead
(Since version 0.6.0) Use Diagnostic instead
(Since version 0.6.0) Use Diagnostic instead
(Since version 0.6.0) Use Diagnostic instead