Make Your Codebase More Maintainable Using custom_lint by Creating Custom Refactorings and Lint Rule
summary
Builds a real custom_lint rule that detects Riverpod-generated subclass naming mistakes and offers an automatic fix; uses analyzer + custom_lint + custom_lint_builder, registers a plugin file, subscribes to class declarations, uses a TypeChecker to find the annotation, reports precise offsets, and implements a quick fix by extending the fix class and applying edits via changeBuilder edits. Hot reload and VM service debugging work; the rule and quick fix are implemented in ~20 minutes and function immediately.
AI-written summary · about
