dart-code-metrics icon indicating copy to clipboard operation
dart-code-metrics copied to clipboard

[FEATURE REQEST] Auto-Fix for the member-ordering-extended and member-ordering rules

Open zs-dima opened this issue 4 years ago • 5 comments

Could be nice to have Auto-Fix for the member-ordering-extended specially for the alphabetize option.

Could be nice to keep in mind possible flutter_member_ordering options: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#order-other-class-members-in-a-way-that-makes-sense

zs-dima avatar Sep 13 '21 05:09 zs-dima

I would say it be nice to have auto-fix for all rules if it is possible.

dened avatar Sep 13 '21 06:09 dened

@dened I mean specially for the member-ordering-extended as this rule leads to huge manual work for the existing projects.

zs-dima avatar Sep 13 '21 06:09 zs-dima

@zs-dima could you clarify, what do you mean by Could be nice to keep in mind possible flutter_member_ordering options:?

incendial avatar Sep 13 '21 17:09 incendial

@incendial thanks for looking into I mean could be nice to be able to setup ordering to follow flutter_member_ordering suggestions.

zs-dima avatar Sep 13 '21 18:09 zs-dima

I mean could be nice to be able to setup ordering to follow flutter_member_ordering suggestions.

Ah, that's a great idea, but I think we'll be able to make it a default order only in the next major release.

incendial avatar Sep 14 '21 15:09 incendial

Fixes are not planned as a part of current tool state, but the flutter widgets order is supported separately

incendial avatar Oct 31 '22 19:10 incendial