code_craft_lints library

A powerful Dart analyzer plugin enforcing clean architecture, indentation limits, and strict class modifiers with automated quick fixes.

This library exports all custom lint rules, automated quick fixes, and the plugin entry point for static analysis configuration.

Classes

CodeCraftLintsPlugin
The custom linter analyzer plugin that registers lint rules and quick fixes with the Dart analysis server plugin registry.
ConvertToTernaryFix
A quick fix that converts qualifying if/else statements into concise ternary expressions.
FinalImplementationClassLint
A lint rule requiring concrete implementation classes to be declared as final class.
MakeClassBaseFix
A quick fix that adds the base modifier to a concrete class declaration.
MakeClassFinalFix
A quick fix that adds the final modifier to a concrete class declaration.
MakeClassInterfaceFix
A quick fix that adds the interface modifier to an abstract class declaration.
MaxTwoLevelOfIndentationLint
A lint rule enforcing a maximum of 2 levels of indentation per function/method body.
OneStatementPerBlockLint
A lint rule enforcing that control flow blocks contain at most one statement.
PreferTernaryLint
A lint rule suggesting ternary operators over simple if/else returns and assignments.
PureContractClassLint
A lint rule requiring pure contract classes to be declared as abstract interface class.

Properties

plugin CodeCraftLintsPlugin
The global CodeCraftLintsPlugin instance required by the Dart analysis server.
final