Menu

📰
0

Flutter CI Broke With 2288 Errors — How dart fix --apply Saved Us

DEV Community: dart·kanta13jp1·about 1 month ago
#diS7bcar
#dev#dart#ci#buildinpublic#devops#code
Reading 0:00
15s threshold

Flutter CI Broke With 2288 Errors — How dart fix --apply Saved Us What Happened One morning, deploy-prod.yml started failing: error • Use 'const' with the constructor to improve performance lib/pages/landing_page.dart:12:15 • prefer_const_constructors ... (2287 more errors) 2,288 errors. A 200-page Flutter Web app went from green to red overnight. The cause: one line in analysis_options.yaml . # Before: prefer_const_constructors : warning # The commit that broke everything: prefer_const_constructors : error One severity upgrade. 2,288 CI failures. The Fix Step 1: Immediate rollback — warning not error # analysis_options.yaml linter : rules : prefer_const_constructors : warning # downgrade back This unblocks CI, but 2,288 warnings remain as a time bomb. Anyone upgrading to error again will re-trigger the same failure. We needed a real fix.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More