From a628814ebd25bb7617aae636031ca880b9e25a57 Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Tue, 13 Feb 2024 10:41:46 -0800 Subject: [PATCH] Allow deprecated members from the Dart SDK and Flutter Engine to roll in (#143347) Namely, without breaking the tree. This is a deliberate policy decision change. See https://github.com/flutter/flutter/issues/143312. --- analysis_options.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index 6bf95b55f4..2414140ca3 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -20,8 +20,10 @@ analyzer: strict-inference: true strict-raw-types: true errors: - # allow self-reference to deprecated members (we do this because otherwise we have - # to annotate every member in every test, assert, etc, when we deprecate something) + # allow deprecated members (we do this because otherwise we have to annotate + # every member in every test, assert, etc, when we or the Dart SDK deprecates + # something (https://github.com/flutter/flutter/issues/143312) + deprecated_member_use: ignore deprecated_member_use_from_same_package: ignore exclude: - "bin/cache/**"