Skip to content

Deprecate analysis_options_user.yaml #82948

@goderbauer

Description

@goderbauer

Once #81417 has been in one or two stable releases we should officially deprecate analysis_options_user.yaml and nudge people to migrate to package:flutter_lints with some kind of a deprecation message.

We need to show a deprecation massage with note to upgrade to people if they

  • include analysis_options_user.yaml in their own analysis_options.yaml file (e.g. by specifying include: package:flutter/analysis_options_user.yaml)
  • analyze a flutter project that doesn't have a analysis_options.yaml file defined causing the analyzer to implicitly fall back to analysis_options_user.yaml (this fallback is hard-coded in the analyzer, I believe?)

In those situations, the deprecation message must surface for people who run flutter analyze on the command line as well as for people who analyze their code in the IDE (e.g. as a warning in the "Dart Analysis" tab of the IDE).

The deprecation message can link to the migration guide which shows people how to upgrade their project to package:flutter_lints: https://flutter.dev/docs/release/breaking-changes/flutter-lints-package

Metadata

Metadata

Labels

P2Important issues not at the top of the work lista: qualityA truly polished experiencec: tech-debtTechnical debt, code quality, testing, etc.dependency: dartDart team may need to help usframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions