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
除非另有说明,否则本网站上的文档反映的是 Dart 3.7.1 版本。页面上次更新于 2025-03-07。 查看源代码 或报告问题。