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