Skip to content

Rule category proposals #57123

@srawlins

Description

@srawlins

With the ability to tag a lint rule with multiple categories, I'm exploring how we can take advantage, and what new categories we can introduce, to help people quickly categorize various rules in their head. In addition to "style," "errors," and "pub":

  • maintainability / readability
    • annotate_overrides
    • annotate_redeclares
    • avoid_annotating_with_dynamic
    • avoid_bool_literals_in_conditional_expressions
    • avoid_classes_with_only_static_members
    • avoid_empty_else
    • avoid_positional_boolean_parameters
    • avoid_print
    • avoid_void_async
    • cast_nullable_to_non_nullable
  • code bloat
    • avoid_unused_constructor_parameters
  • binary size
    • avoid_annotating_with_dynamic
    • avoid_dynamic_calls
  • code quality / best practices (as in, not style-related best practices, but best practices w.r.t. code quality, error-prone code, ...)
    • avoid_catches_without_on_clauses
    • avoid_catching_errors
    • avoid_null_checks_in_equality_operators
    • avoid_returning_this
    • avoid_shadowing_type_parameters
  • flutter
    • avoid_unnecessary_containers
    • avoid_web_libraries_in_flutter
  • runtime performance
    • avoid_slow_async_io
  • correctness (maybe the same as "errors," but I'm tracking here to see if there are differences)
    • avoid_equals_and_hash_code_on_mutable_classes
    • avoid_implementing_value_types
  • documentation
  • avoid_renaming_method_parameters
  • memory
    • avoid_field_initializers_in_const_classes
    • cancel_subscriptions
    • close_sinks
  • web
    • avoid_double_and_int_checks
    • avoid_js_rounded_ints
    • avoid_web_libraries_in_flutter

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions