You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.3 KiB
87 lines
2.3 KiB
include: package:flutter_lints/flutter.yaml |
|
|
|
analyzer: |
|
language: |
|
strict-casts: true |
|
strict-inference: true |
|
|
|
errors: |
|
missing_required_param: warning |
|
missing_return: warning |
|
todo: ignore |
|
included_file_warning: ignore |
|
|
|
linter: |
|
rules: |
|
- always_declare_return_types |
|
- avoid_dynamic_calls |
|
- avoid_empty_else |
|
- avoid_relative_lib_imports |
|
- avoid_shadowing_type_parameters |
|
- avoid_slow_async_io |
|
- avoid_types_as_parameter_names |
|
- await_only_futures |
|
- camel_case_extensions |
|
- camel_case_types |
|
- cancel_subscriptions |
|
- curly_braces_in_flow_control_structures |
|
- directives_ordering |
|
- empty_catches |
|
- hash_and_equals |
|
- iterable_contains_unrelated_type |
|
- list_remove_unrelated_type |
|
- no_adjacent_strings_in_list |
|
- no_duplicate_case_values |
|
- non_constant_identifier_names |
|
- omit_local_variable_types |
|
- package_api_docs |
|
- package_prefixed_library_names |
|
- prefer_generic_function_type_aliases |
|
- prefer_is_empty |
|
- prefer_is_not_empty |
|
- prefer_iterable_whereType |
|
- prefer_single_quotes |
|
- prefer_typing_uninitialized_variables |
|
- sort_child_properties_last |
|
- test_types_in_equals |
|
- throw_in_finally |
|
- unawaited_futures |
|
- unnecessary_null_aware_assignments |
|
- unnecessary_statements |
|
- unrelated_type_equality_checks |
|
- unsafe_html |
|
- valid_regexps |
|
|
|
- constant_identifier_names |
|
- control_flow_in_finally |
|
- empty_statements |
|
- implementation_imports |
|
- overridden_fields |
|
- package_names |
|
- prefer_const_constructors |
|
- prefer_initializing_formals |
|
- prefer_void_to_null |
|
|
|
- always_require_non_null_named_parameters |
|
- annotate_overrides |
|
- avoid_init_to_null |
|
- avoid_null_checks_in_equality_operators |
|
- avoid_return_types_on_setters |
|
- empty_constructor_bodies |
|
- library_names |
|
- library_prefixes |
|
- prefer_adjacent_string_concatenation |
|
- prefer_collection_literals |
|
- prefer_contains |
|
- prefer_equal_for_default_values |
|
- slash_for_doc_comments |
|
- type_init_formals |
|
- unnecessary_const |
|
- unnecessary_new |
|
- unnecessary_null_in_if_null_operators |
|
- use_rethrow_when_possible |
|
|
|
- public_member_api_docs |
|
|
|
- sort_constructors_first |
|
- sort_unnamed_constructors_first
|
|
|