Lint Smarter, Not Harder
summary
Steps for migrating leancode_lint to the new Dart analyzer plugin system, including creating a separate package with a main.dart that exposes a plugin field, registering rules and assists, and rewriting callback-based checks to the analyzer’s visitor pattern. Shows limitations: default severities are info only and analysis_options-based config is missing. Demonstrates that fixes and assists are now a single correction producer, migration is mostly straightforward but adds boilerplate, and the plugin runs directly under dart analyze.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:04Why lints matter
- 3:56Fixes, assists, and custom lints
- 6:53Enforcing architecture standards
- 8:41New plug-in system overview
- 12:14Migrating to new system
- 17:38Using updated lint package
- 18:44Conclusion and resources for further learning
related talks
48mEnforcing Rules with Our Own Dart Linter
44mLint. What, Why, How?
30mLint Your Code Into the Future
46mLint for Life: Your Customizable Guard On the Go
34mLint to the Rescue
20mClean Code Base: Harnessing the Power of Android Lint and Custom Rules
15mLint ALL the Things
32mExtending Leiningen to Make it Do What you Want
