From cc4cc699f8803f8699b5343b5737abb570e141bf Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Thu, 14 Apr 2022 13:26:18 -0700 Subject: [PATCH] Enable `use_super_parameters` lint (#101074) --- analysis_options.yaml | 3 +++ examples/api/analysis_options.yaml | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 examples/api/analysis_options.yaml diff --git a/analysis_options.yaml b/analysis_options.yaml index ee6bf37fae..fd80e4b7cb 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -224,7 +224,9 @@ linter: - unrelated_type_equality_checks - unsafe_html - use_build_context_synchronously + # - use_colored_box # not yet tested # - use_decorated_box # not yet tested + # - use_enums # not yet tested - use_full_hex_values_for_flutter_colors - use_function_type_syntax_for_parameters - use_if_null_to_convert_nulls_to_bools @@ -236,6 +238,7 @@ linter: - use_rethrow_when_possible - use_setters_to_change_properties # - use_string_buffers # has false positives: https://github.com/dart-lang/sdk/issues/34182 + - use_super_parameters - use_test_throws_matchers # - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review - valid_regexps diff --git a/examples/api/analysis_options.yaml b/examples/api/analysis_options.yaml new file mode 100644 index 0000000000..79ac82d286 --- /dev/null +++ b/examples/api/analysis_options.yaml @@ -0,0 +1,8 @@ +include: ../../analysis_options.yaml + +linter: + rules: + # TODO(goderbauer): enable when super params are more established and + # seeing them in the API samples is no longer surprising, + # https://github.com/flutter/flutter/issues/101068 + use_super_parameters: false