code_craft_lints 1.0.2 copy "code_craft_lints: ^1.0.2" to clipboard
code_craft_lints: ^1.0.2 copied to clipboard

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

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.2 - 2026-08-19 #

Fixed #

  • Fixed example project to work with the analyzer plugin.

1.0.1 - 2026-08-19 #

Fixed #

  • Fixed analyzer plugin path resolution in example project.
  • Added comprehensive example project and documentation.

1.0.0 - 2026-08-19 #

Added #

  • Initial release of code_craft_lints analysis server plugin.
  • Lint Rules:
    • prefer_ternary: Enforces ternary operators for simple single-statement returns and assignments instead of verbose if/else blocks.
    • pure_contract_class: Enforces the abstract interface class declaration for pure contract classes without implementations or instance fields.
    • final_implementation_class: Enforces final class or base class modifiers on concrete implementation classes to prevent unintentional inheritance.
    • one_level_of_indentation: Enforces Object Calisthenics indentation rule (maximum 1 level of control-flow indentation per function).
    • one_statement_per_block: Enforces that control blocks contain at most one statement to promote concise function decomposition.
  • Automated Fixes (dart fix --apply):
    • Convert to ternary operator for prefer_ternary.
    • Add 'interface' modifier for pure_contract_class.
    • Add 'final' modifier for final_implementation_class.
    • Add 'base' modifier for final_implementation_class.
0
likes
0
points
77
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Topics

#analyzer-plugin #linter #static-analysis #code-quality #clean-code

License

unknown (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin

More

Packages that depend on code_craft_lints