Skip to content

feat: add analysis_options.11.1.0.yaml - #243

Open
marcossevilla wants to merge 6 commits into
mainfrom
feat/add-missing-lints
Open

marcossevilla wants to merge 6 commits into
mainfrom
feat/add-missing-lints

Conversation

@marcossevilla

Copy link
Copy Markdown
Member

Status

READY

Description

Adds analysis_options.11.1.0.yaml with two new rules:

  • use_primary_constructors: complements use_declaring_parameters and unnecessary_primary_constructor_body (already enabled in 11.0.0). Note: the rule is still in the SDK's testing state (not listed in rules.json), but it works on Dart 3.13 stable.
  • migrate_design_widgets: flags imports of package:flutter/material.dart and package:flutter/cupertino.dart in favour of the decoupled material_ui / cupertino_ui packages (Flutter >=3.47). ⚠️ This will surface on most files in existing Flutter apps.

Other candidates were evaluated and intentionally left out:

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

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).
@marcossevilla
marcossevilla requested a review from a team as a code owner October 9, 2026 13:07
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.
@unicoderbot

unicoderbot Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Heads up — I'm auto-updating this PR by merging the latest main into this branch. No action needed; I'll comment again only if this update hits a conflict or an unexpected error.

erickzanardo
erickzanardo previously approved these changes Oct 9, 2026
@unicoderbot

unicoderbot Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Heads up — I'm auto-updating this PR by merging the latest main into this branch. No action needed; I'll comment again only if this update hits a conflict or an unexpected error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

2 participants