|
# Dart 分析器配置,用于在开发阶段发现错误、警告和代码规范问题。
|
|
# 可通过 `flutter analyze` 执行静态检查。
|
|
include: package:flutter_lints/flutter.yaml
|
|
|
|
linter:
|
|
# 如需自定义规则,可在此处开启或关闭指定 lint。
|
|
rules:
|
|
# avoid_print: false # 取消注释后可关闭 `avoid_print` 规则。
|
|
# prefer_single_quotes: true # 取消注释后可开启 `prefer_single_quotes` 规则。
|