1- include : package:lint/analysis_options.yaml
1+ # Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
2+ # for details. All rights reserved. Use of this source code is governed by a
3+ # BSD-style license that can be found in the LICENSE file.
4+ #
5+ # Google internally enforced rules. See README.md for more information,
6+ # including a list of lints that are intentionally _not_ enforced.
7+
8+ linter :
9+ rules :
10+ - always_declare_return_types
11+ - always_require_non_null_named_parameters
12+ - annotate_overrides
13+ - avoid_init_to_null
14+ - avoid_null_checks_in_equality_operators
15+ - avoid_relative_lib_imports
16+ - avoid_return_types_on_setters
17+ - avoid_shadowing_type_parameters
18+ - avoid_single_cascade_in_expression_statements
19+ - avoid_types_as_parameter_names
20+ - await_only_futures
21+ - camel_case_extensions
22+ - curly_braces_in_flow_control_structures
23+ - empty_catches
24+ - empty_constructor_bodies
25+ - library_names
26+ - library_prefixes
27+ - no_duplicate_case_values
28+ - null_closures
29+ - omit_local_variable_types
30+ - prefer_adjacent_string_concatenation
31+ - prefer_collection_literals
32+ - prefer_conditional_assignment
33+ - prefer_contains
34+ - prefer_equal_for_default_values
35+ - prefer_final_fields
36+ - prefer_for_elements_to_map_fromIterable
37+ - prefer_generic_function_type_aliases
38+ - prefer_if_null_operators
39+ - prefer_inlined_adds
40+ - prefer_is_empty
41+ - prefer_is_not_empty
42+ - prefer_iterable_whereType
43+ - prefer_single_quotes
44+ - prefer_spread_collections
45+ - recursive_getters
46+ - slash_for_doc_comments
47+ - sort_child_properties_last
48+ - type_init_formals
49+ - unawaited_futures
50+ - unnecessary_brace_in_string_interps
51+ - unnecessary_const
52+ - unnecessary_getters_setters
53+ - unnecessary_new
54+ - unnecessary_null_in_if_null_operators
55+ - unnecessary_this
56+ - unrelated_type_equality_checks
57+ - unsafe_html
58+ - use_full_hex_values_for_flutter_colors
59+ - use_function_type_syntax_for_parameters
60+ - use_rethrow_when_possible
61+ - valid_regexps
0 commit comments