Enable recent lints for site tooling and implementation - #13845
Conversation
parlough
commented
Sep 2, 2026
- Enables some new and some pre-existing lints for site tooling and implementation.
- Fixes diagnostics reported after enabling those lints.
- Temporarily enabled some others to address certain cases of them.
There was a problem hiding this comment.
Code Review
This pull request updates the linter rules in analysis.yaml, bumps the SDK version constraint to ^3.13.0, and applies various code cleanups across multiple packages, such as optimizing const usage, simplifying pattern matching, and removing redundant async keywords. The reviewer identified two critical resource leaks: a memory leak in _TooltipState due to an uncancelled window resize event listener, and a file handle leak in TrackingAssetTransformer because the IOSink is never closed.
|
Staged preview of the updated docs.flutter.dev site (updated for commit ab4abb0): https://flutter-docs-prod--docs-pr13845-misc-3-13-new-lints-h9bynf5e.web.app |
|
Staged preview of the updated flutter.dev site (updated for commit ab4abb0): https://flutter-dev-230821--www-pr13845-misc-3-13-new-lints-amaj0j8n.web.app |