跳到主要内容

combinators_ordering

稳定
有可用修复

按字母顺序排序组合器名称。

详情

#

建议按字母顺序排序组合器名称。

dart
import 'a.dart' show B, A hide D, C;
export 'a.dart' show B, A hide D, C;

dart
import 'a.dart' show A, B hide C, D;
export 'a.dart' show A, B hide C, D;

启用

#

要启用 combinators_ordering 规则,请在 analysis_options.yaml 文件中的 linter > rules 下添加 combinators_ordering

analysis_options.yaml
yaml
linter:
  rules:
    - combinators_ordering

如果您使用 YAML 映射语法配置 linter 规则,请在 linter > rules 下添加 combinators_ordering: true

analysis_options.yaml
yaml
linter:
  rules:
    combinators_ordering: true