Dmitry Zhifarsky
Dmitry Zhifarsky
Looks like there are 3 options: do nothing, new setting or a separate command 🤔
@jibiel Hi, we are developing additional linting tool for dart https://dcm.dev/ and have configurable member ordering rule https://dcm.dev/docs/rules/common/member-ordering/. It would be great if u could take a look. Any feedback...
@bsutton any chance https://dartcodemetrics.dev/docs/rules/common/avoid-passing-async-when-sync-expected might help?
@bsutton this rule is not a part of standard analyzer / linter set. In order to make it work, you need to install and configure `dart_code_metrics` package https://dartcodemetrics.dev/docs/getting-started/installation
> This is a fundamental problem so really belongs in the core lints. @bsutton maybe, but I was wondering whether this rule actually does what you want. If so, you...
Are you sure you can sort them back? Because this info is not stored anywhere AFAIK. Btw, in my fork I keep the original list alongside with the sorted one...
> Although I just looked and see a nameOffset on ParameterElement that might do it? (although, not having to re-sort whenever we built the display string would be better, which...
~~Feels like this issue https://github.com/dart-lang/language/issues/2537 has a discussion about this problem.~~ Edit: actually, if guards are expected to always diverge, then it's a different thing.
@redevrx can you fix the description? And what is "Flutter Pre-push"?
@redevrx have you tried passing dedicated flags to the CLI https://github.com/dart-code-checker/dart-code-metrics/blob/master/lib/src/cli/commands/analyze_command.dart#L176?