-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
customer-flutterdevexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
This lint warns if a package or file is accidentally opted out of null safety. As far as I know, there are two ways to opt out of null safety and the lint should trigger on both:
- opting a specific
.dartfile out of null safety by using// @dart = 2.9syntax with a version number <2.12 - specifying a min SDK version in the
pubspec.yamlof less then 2.12
Background: We are currently migrating all remaining code in the https://github.com/flutter/flutter repository to null safety (see flutter/flutter#84014). Once that is done, it should be illegal to add packages or files to the repository that have opted out of null safety. This lint would be enabled in the repository-wide analysis_options.yaml file to enforce that.
srawlins, pq and albertms10
Metadata
Metadata
Assignees
Labels
customer-flutterdevexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug