跳到主要內容

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