solid-software / solid_lints

🟧 Lints for Dart and Flutter based on software industry standards and best practices.
Other
36 stars 17 forks source link

Add configuration for separate sorting of overridden getters and setters in `member_ordering` rule #175

Closed nathnaeld closed 3 months ago

nathnaeld commented 3 months ago

Objective:

Enhance the member_ordering rule by adding a dedicated option for ordering overridden getters and setters separately from the existing getters_setters option.

Proposed Feature:

Introduce overridden_getters_setters as a new configuration option within member_ordering. This option will allow to specify the placement of overridden getters and setters independently of the standard getters_setters option,

- member_ordering:
  order:
    - fields
    - constructors
    - getters_setters
    - methods
    - overridden_getters_setters # new rule
    - overridden_methods
    - dispose_method
nathnaeld commented 3 months ago

I did not know that the lint order works with patterns. It already works by adding the above rule.