class LegacySemanticRule extends v1.SemanticRule
- Alphabetic
- By Inheritance
- LegacySemanticRule
- SemanticRule
- Rule
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LegacySemanticRule(name: rule.RuleName, fn: (v0.SemanticdbIndex) => v0.Rule)
Value Members
- def afterComplete(): Unit
Called after all documents have been processed
Called after all documents have been processed
- Definition Classes
- Rule
- def beforeStart(): Unit
Called before the rule starts processing documents
Called before the rule starts processing documents
- Definition Classes
- Rule
- def description: String
Single sentence explanation of what this rule does.
Single sentence explanation of what this rule does.
Example: Removed unused imports reported by the compiler under -Ywarn-unused
- Definition Classes
- LegacySemanticRule → Rule
- def fix(implicit sdoc: SemanticDocument): patch.Patch
- Definition Classes
- LegacySemanticRule → SemanticRule
- def isExperimental: Boolean
Indicates if this rule is incomplete and subject to breaking changes or removal in the future.
Indicates if this rule is incomplete and subject to breaking changes or removal in the future.
Experimental rules are excluded from from tab completions and do not need to be documented on the website.
- Definition Classes
- Rule
- def isLinter: Boolean
If true, allows this rule to be grouped together with other linter rules for documentation purposes.
If true, allows this rule to be grouped together with other linter rules for documentation purposes.
- Definition Classes
- Rule
- def isRewrite: Boolean
If true, allows this rule to be grouped together with other rewrite rules for documentation purposes.
If true, allows this rule to be grouped together with other rewrite rules for documentation purposes.
- Definition Classes
- Rule
- val name: v1.RuleName
- Definition Classes
- Rule
- def toString(): String
- Definition Classes
- Rule → AnyRef → Any
- def withConfiguration(configuration: Configuration): Configured[v1.Rule]
Configure this rule according to user .scalafix.conf settings and compiler version.
Configure this rule according to user .scalafix.conf settings and compiler version.
This method is called once per project/module. The same rule instance is used to analyze multiple source files.
- returns
A new version of this rule with loaded configuration or an error message.
- Definition Classes
- LegacySemanticRule → Rule