Repository navigation
feat: add analysis_options.11.1.0.yaml - #243
Open
marcossevilla wants to merge 6 commits into
Open
marcossevilla wants to merge 6 commits into
marcossevilla wants to merge 6 commits into
Conversation
Introduce the 11.1.0 ruleset (copied from 11.0.0) to host new rules.
Complements use_declaring_parameters and unnecessary_primary_constructor_body. The rule is still in the 'testing' state in the SDK (not listed in rules.json) but works on Dart 3.13 stable.
Flags imports of package:flutter/material.dart and cupertino.dart in favour of the decoupled material_ui and cupertino_ui packages (Flutter >=3.47).
initialize_in_field_declaration, empty_container_bodies, no_runtimetype_tostring and unnecessary_const_in_enum_constructor are enabled since 11.0.0 but were still listed as excluded because the bot_updater workflow has been failing. Also adds the Dart 3.14 rules future_sync_value and unnecessary_this_alias with their reasons.
This was referenced Oct 9, 2026
Contributor
|
Heads up — I'm auto-updating this PR by merging the latest |
erickzanardo
previously approved these changes
Oct 9, 2026
Contributor
|
Heads up — I'm auto-updating this PR by merging the latest |
erickzanardo
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
READY
Description
Adds
analysis_options.11.1.0.yamlwith two new rules:use_primary_constructors: complementsuse_declaring_parametersandunnecessary_primary_constructor_body(already enabled in 11.0.0). Note: the rule is still in the SDK'stestingstate (not listed inrules.json), but it works on Dart 3.13 stable.migrate_design_widgets: flags imports ofpackage:flutter/material.dartandpackage:flutter/cupertino.dartin favour of the decoupledmaterial_ui/cupertino_uipackages (Flutter >=3.47).Other candidates were evaluated and intentionally left out:
no_dynamic_casts/no_raw_types: redundant withstrict-casts/strict-raw-types.future_sync_value/unnecessary_this_alias: require Dart 3.14.Type of Change