From 725f6476d96e62c9a877875e0d9084a75b204b48 Mon Sep 17 00:00:00 2001 From: Rob Becker Date: Tue, 22 Oct 2024 00:15:39 -0600 Subject: [PATCH] Warn on legacy imports --- lib/v1.recommended.yaml | 1 + lib/v1.yaml | 2 ++ lib/v2.recommended.yaml | 1 + lib/v2.yaml | 1 + 4 files changed, 5 insertions(+) diff --git a/lib/v1.recommended.yaml b/lib/v1.recommended.yaml index 7d9c1f0..756a83a 100644 --- a/lib/v1.recommended.yaml +++ b/lib/v1.recommended.yaml @@ -84,6 +84,7 @@ analyzer: cascade_invocations: warning comment_references: warning curly_braces_in_flow_control_structures: warning + import_of_legacy_library_into_null_safe: warning join_return_with_assignment: warning omit_local_variable_types: warning overridden_fields: warning diff --git a/lib/v1.yaml b/lib/v1.yaml index 94bd9da..de0a5d8 100644 --- a/lib/v1.yaml +++ b/lib/v1.yaml @@ -98,6 +98,7 @@ analyzer: file_names: warning hash_and_equals: warning implementation_imports: warning + import_of_legacy_library_into_null_safe: warning iterable_contains_unrelated_type: warning library_names: warning library_prefixes: warning @@ -184,3 +185,4 @@ linter: - unrelated_type_equality_checks - valid_regexps - void_checks + diff --git a/lib/v2.recommended.yaml b/lib/v2.recommended.yaml index 3b465fe..6660c47 100644 --- a/lib/v2.recommended.yaml +++ b/lib/v2.recommended.yaml @@ -90,6 +90,7 @@ analyzer: control_flow_in_finally: warning curly_braces_in_flow_control_structures: warning directives_ordering: warning + import_of_legacy_library_into_null_safe: warning join_return_with_assignment: warning literal_only_boolean_expressions: warning omit_local_variable_types: warning diff --git a/lib/v2.yaml b/lib/v2.yaml index bb1b883..1002290 100644 --- a/lib/v2.yaml +++ b/lib/v2.yaml @@ -108,6 +108,7 @@ analyzer: file_names: warning hash_and_equals: warning implementation_imports: warning + import_of_legacy_library_into_null_safe: warning iterable_contains_unrelated_type: warning library_names: warning library_prefixes: warning