analyzer_kit 1.0.0 copy "analyzer_kit: ^1.0.0" to clipboard
analyzer_kit: ^1.0.0 copied to clipboard

A Dart Analyzer plugin providing lint rules and quick fixes for analyzer_kit annotations.

1.0.0 #

  • Initial release.
  • Lint rules (all at ERROR severity):
    • data_class_annotation — reports @DataClass when enabled methods are missing.
    • copy_with_annotation — reports @CopyWith when copyWith is missing.
    • override_equality_annotation — reports @OverrideEquality when == or hashCode is missing.
    • override_to_string_annotation — reports @OverrideToString when toString is missing.
    • serialize_annotation — reports @Serialize when the serialization method is missing.
    • deserialize_annotation — reports @Deserialize when the deserialization factory/method is missing.
  • Quick fixes (all support Fix All via CorrectionApplicability.automatically):
    • AddDataClassMethods — generates all enabled methods for @DataClass in one pass.
    • AddCopyWithMethod — generates copyWith with named optional parameters.
    • OverrideEqualityMethods — generates == and hashCode with deepCollectionEquality support.
    • OverrideToStringMethod — generates toString listing all generatable fields.
    • AddSerializeMethod — generates serialization method with configurable name.
    • AddDeserializeMethod — generates deserialization factory with configurable name.
  • Architecture:
    • Scalable BaseAnnotationRule / AnnotationRule hierarchy.
    • Code generation via code_builder and dart_style.
    • Case-insensitive annotation matching for both PascalCase and camelCase usage.
5
likes
0
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart Analyzer plugin providing lint rules and quick fixes for analyzer_kit annotations.

Repository (GitHub)
View/report issues

Topics

#analyzer #linting #codegen #annotation

License

unknown (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, code_builder, dart_style

More

Packages that depend on analyzer_kit