From a58436c1b85031c24b8838e2e04301b0147c3656 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Mon, 1 Aug 2022 09:25:04 -0700 Subject: [PATCH] Enable avoid_returning_null & native_function_body_in_non_sdk_code (flutter/engine#35015) --- engine/src/flutter/analysis_options.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/src/flutter/analysis_options.yaml b/engine/src/flutter/analysis_options.yaml index 64f8d393da..867bfa30a9 100644 --- a/engine/src/flutter/analysis_options.yaml +++ b/engine/src/flutter/analysis_options.yaml @@ -16,7 +16,6 @@ analyzer: missing_required_param: warning # treat missing returns as a warning (not a hint) missing_return: warning - native_function_body_in_non_sdk_code: ignore # DIFFERENT FROM FLUTTER/FLUTTER # allow having TODO comments in the code todo: ignore # allow dart:ui to import dart:_internal @@ -65,7 +64,7 @@ linter: - avoid_relative_lib_imports - avoid_renaming_method_parameters - avoid_return_types_on_setters - # - avoid_returning_null # still violated by some pre-nnbd code that we haven't yet migrated + - avoid_returning_null - avoid_returning_null_for_future - avoid_returning_null_for_void # - avoid_returning_this # there are enough valid reasons to return `this` that this lint ends up with too many false positives