1- include : package:lints/recommended.yaml
1+ # See https://dart.dev/guides/language/analysis-options
2+ include : package:dart_flutter_team_lints/analysis_options.yaml
23
34analyzer :
45 language :
56 strict-casts : true
67
78linter :
89 rules :
9- - always_declare_return_types
10- - avoid_catching_errors
11- - avoid_dynamic_calls
1210 - avoid_private_typedef_functions
1311 - avoid_redundant_argument_values
1412 - avoid_returning_null
@@ -20,38 +18,24 @@ linter:
2018 - combinators_ordering
2119 - comment_references
2220 - dangling_library_doc_comments
23- - directives_ordering
2421 - implicit_call_tearoffs
2522 - join_return_with_assignment
2623 - library_annotations
27- - lines_longer_than_80_chars
2824 - literal_only_boolean_expressions
2925 - missing_whitespace_between_adjacent_strings
3026 - no_runtimeType_toString
31- - omit_local_variable_types
32- - only_throw_errors
3327 - package_api_docs
34- - prefer_asserts_in_initializer_lists
3528 - prefer_const_constructors
3629 - prefer_const_declarations
3730 - prefer_expression_function_bodies
3831 - prefer_final_locals
3932 - prefer_relative_imports
40- - prefer_single_quotes
4133 - sort_child_properties_last
42- - sort_pub_dependencies
4334 - test_types_in_equals
44- - throw_in_finally
45- - type_annotate_public_apis
46- - unawaited_futures
47- - unnecessary_lambdas
4835 - unnecessary_library_directive
49- - unnecessary_parenthesis
50- - unnecessary_statements
5136 - unreachable_from_main
5237 - unsafe_html
5338 - use_full_hex_values_for_flutter_colors
54- - use_is_even_rather_than_modulo
5539 - use_string_buffers
5640 - use_string_in_part_of_directives
5741 - use_super_parameters
0 commit comments