dbd183ee00
发现:CI flutter analyze 退出码 1(1204 个 info,0 error/warning),其中 1191 来自 第三方 vendored 包 lucide_icons_patched —— 这道闸一直红/无效。 - analysis_options.yaml:exclude packages/lucide_icons_patched/**(去 1191 噪音) - ci.yml:flutter analyze --no-fatal-infos(info 是建议级不该硬挡 merge; error/warning 仍致命)→ analyze EXIT 0、闸真正可用 - 顺手清 11 个 clean 文件 info:auth_api 删 >>>AUTHLOG 调试 print 残留(+unused sw)、 account_page/plan_card withOpacity→withValues、vpn_bridge where(is Map)→whereType、 测试文件删多余 import + final→const - 剩 2 个 info 在 stats-overhaul dirty 文件(stats_page/device_stat_row),留其合并清 - 验证:flutter analyze --no-fatal-infos EXIT 0(1204→2)、flutter test 48 全过 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
13 lines
372 B
YAML
13 lines
372 B
YAML
include: package:flutter_lints/flutter.yaml
|
|
|
|
analyzer:
|
|
# 第三方 vendored path 依赖不该被项目 lint 评判(否则 ~1191 条 unnecessary_const
|
|
# 噪音淹没自身 issue,让 analyze 闸形同虚设)。
|
|
exclude:
|
|
- packages/lucide_icons_patched/**
|
|
|
|
linter:
|
|
rules:
|
|
prefer_const_constructors: false
|
|
prefer_const_literals_to_create_immutables: false
|