From 63174ac119a7c7718f78baef269a7512d0c787fb Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Wed, 24 Jun 2026 13:01:53 -0400 Subject: [PATCH] [various] Check in auto-upgrade to analysis options `flutter pub get` with the latest `master` automatically adds exclusions to any package-local analysis options. This checks in those changes to avoid having diffs either locally, or in CI (triggering failures in the format check since the format check looks for any diffs currently, so this will unblock the roller). --- packages/animations/analysis_options.yaml | 9 +++++++++ packages/cupertino_ui/analysis_options.yaml | 7 +++++++ packages/cupertino_ui/example/analysis_options.yaml | 9 +++++++++ packages/flutter_lints/example/analysis_options.yaml | 9 +++++++++ packages/go_router/analysis_options.yaml | 7 +++++++ packages/go_router_builder/example/analysis_options.yaml | 9 +++++++++ packages/material_ui/analysis_options.yaml | 7 +++++++ packages/material_ui/example/analysis_options.yaml | 9 +++++++++ .../testing/test_app/analysis_options.yaml | 9 +++++++++ 9 files changed, 75 insertions(+) diff --git a/packages/animations/analysis_options.yaml b/packages/animations/analysis_options.yaml index 2b795b9100c2..cd11d975871c 100644 --- a/packages/animations/analysis_options.yaml +++ b/packages/animations/analysis_options.yaml @@ -2,6 +2,15 @@ # default of enabling unawaited_futures. Please do NOT add more changes # here without consulting with #hackers-ecosystem on Discord. +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** include: ../../analysis_options.yaml linter: diff --git a/packages/cupertino_ui/analysis_options.yaml b/packages/cupertino_ui/analysis_options.yaml index 2a65a55977a6..bd2a1b96a3d9 100644 --- a/packages/cupertino_ui/analysis_options.yaml +++ b/packages/cupertino_ui/analysis_options.yaml @@ -6,3 +6,10 @@ analyzer: # TODO(justinmc): Remove the following exclusion when cross-imports are # fixed. See https://github.com/flutter/flutter/issues/177028. - "temporarily_disabled_tests/**" + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** diff --git a/packages/cupertino_ui/example/analysis_options.yaml b/packages/cupertino_ui/example/analysis_options.yaml index ca26f0d08d76..561497259820 100644 --- a/packages/cupertino_ui/example/analysis_options.yaml +++ b/packages/cupertino_ui/example/analysis_options.yaml @@ -2,6 +2,15 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** include: package:flutter_lints/flutter.yaml linter: diff --git a/packages/flutter_lints/example/analysis_options.yaml b/packages/flutter_lints/example/analysis_options.yaml index 6e937f6ea890..e5fd482896ae 100644 --- a/packages/flutter_lints/example/analysis_options.yaml +++ b/packages/flutter_lints/example/analysis_options.yaml @@ -7,6 +7,15 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** include: package:flutter_lints/flutter.yaml linter: diff --git a/packages/go_router/analysis_options.yaml b/packages/go_router/analysis_options.yaml index 5e5c244496d2..75ffbed8412f 100644 --- a/packages/go_router/analysis_options.yaml +++ b/packages/go_router/analysis_options.yaml @@ -9,3 +9,10 @@ analyzer: exclude: # This directory deliberately has errors, to test `fix`. - "test_fixes/**" + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** diff --git a/packages/go_router_builder/example/analysis_options.yaml b/packages/go_router_builder/example/analysis_options.yaml index fbc265cfff05..aa7068bea593 100644 --- a/packages/go_router_builder/example/analysis_options.yaml +++ b/packages/go_router_builder/example/analysis_options.yaml @@ -2,5 +2,14 @@ # output. Since we want the output to default to what the default formatter # would use, rather than the custom line length used in this repository, use # 80 for this example so it matches. +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** formatter: page_width: 80 diff --git a/packages/material_ui/analysis_options.yaml b/packages/material_ui/analysis_options.yaml index 2a65a55977a6..bd2a1b96a3d9 100644 --- a/packages/material_ui/analysis_options.yaml +++ b/packages/material_ui/analysis_options.yaml @@ -6,3 +6,10 @@ analyzer: # TODO(justinmc): Remove the following exclusion when cross-imports are # fixed. See https://github.com/flutter/flutter/issues/177028. - "temporarily_disabled_tests/**" + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** diff --git a/packages/material_ui/example/analysis_options.yaml b/packages/material_ui/example/analysis_options.yaml index ca26f0d08d76..561497259820 100644 --- a/packages/material_ui/example/analysis_options.yaml +++ b/packages/material_ui/example/analysis_options.yaml @@ -2,6 +2,15 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** include: package:flutter_lints/flutter.yaml linter: diff --git a/packages/web_benchmarks/testing/test_app/analysis_options.yaml b/packages/web_benchmarks/testing/test_app/analysis_options.yaml index ab086918a291..de7703ffc69b 100644 --- a/packages/web_benchmarks/testing/test_app/analysis_options.yaml +++ b/packages/web_benchmarks/testing/test_app/analysis_options.yaml @@ -1,3 +1,12 @@ +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** include: ../../../../analysis_options.yaml linter: