mirror of
https://github.com/flutter/flutter
synced 2024-10-06 00:09:53 +00:00
Enable use_super_parameters
lint (#101074)
This commit is contained in:
parent
2b8333240d
commit
cc4cc699f8
|
@ -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
|
||||
|
|
8
examples/api/analysis_options.yaml
Normal file
8
examples/api/analysis_options.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue