Skip to content

Conversation

@alanknight-wk
Copy link
Contributor

@alanknight-wk alanknight-wk commented Nov 19, 2025

FEDX-4283

Issue Status

Remove analysis options incompatible with Dart 3, and upgrade the pubspec to require Dart 3.
With this, packages running on Dart 2 will still see the older version, but it changes very rarely, so there shouldn't be a problem.

Reason:
Various options are removed in different Dart 3 versions. Trying to run intl_tools against latest I found the following errors.

There is a mechanism for downgrading the severity using removed_lints, but it's not introduced until Dart 3. 😭 So I guess we just remove these. Or make a v3 that people should use if switching to Dart 3, but that's going to be more painful.

warning - analysis_options.yaml:177:7 - 'iterable_contains_unrelated_type' was removed in Dart '3.3.0' Remove the reference to 'iterable_contains_unrelated_type'. - removed_lint
warning - analysis_options.yaml:180:7 - 'list_remove_unrelated_type' was removed in Dart '3.3.0' Remove the reference to 'list_remove_unrelated_type'. - removed_lint
warning - analysis_options.yaml:187:7 - 'prefer_equal_for_default_values' was removed in Dart '3.0.0' Remove the reference to 'prefer_equal_for_default_values'. - removed_lint
warning - analysis_options.yaml:202:7 - 'unsafe_html' was removed in Dart '3.7.0' Remove the reference to 'unsafe_html'. - removed_lint
warning - analysis_options.yaml:1:10 - Warning in the included options file /home/runner/.pub-cache/hosted/pub.dev/workiva_analysis_options-1.4.3/lib/v2.yaml(3689..3716): 'invalid_required_named_param' isn't a recognized error code. - included_file_warning
warning - analysis_options.yaml:1:10 - Warning in the included options file /home/runner/.pub-cache/hosted/pub.dev/workiva_analysis_options-1.4.3/lib/v2.yaml(3731..3763): 'invalid_required_positional_param' isn't a recognized error code. - included_file_warning

@alanknight-wk alanknight-wk marked this pull request as ready for review November 20, 2025 15:21
@alanknight-wk alanknight-wk requested a review from a team as a code owner November 20, 2025 15:21
@bender-wk bender-wk changed the title Remove options not compatible with current Dart 3 FEDX-4283: Remove options not compatible with current Dart 3 Nov 20, 2025
@dustinlessard-wf
Copy link

dustinlessard-wf commented Nov 24, 2025

@alanknight-wk
Copy link
Contributor Author

Should we also modify https://github.com/Workiva/workiva_analysis_options/blob/master/lib/v2.recommended.yaml ?

Recommended includes the regular one and does not list any of the problem rules itself.

@alanknight-wk
Copy link
Contributor Author

@Workiva/release-management-pp

Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from RM

@btr-rmconsole-1 btr-rmconsole-1 bot merged commit a3db6aa into master Nov 24, 2025
4 checks passed
@btr-rmconsole-1 btr-rmconsole-1 bot deleted the remove_dart3_incompatible_options branch November 24, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants