|
1 | 1 | # https://www.dartlang.org/guides/language/analysis-options |
2 | | -# Source of linter options: |
3 | | -# http://dart-lang.github.io/linter/lints/options/options.html |
| 2 | + |
| 3 | +include: package:pedantic/analysis_options.yaml |
| 4 | + |
4 | 5 | analyzer: |
5 | 6 | strong-mode: |
6 | 7 | implicit-casts: false |
7 | | - errors: |
8 | | - todo: ignore |
9 | | - unused_element: error |
10 | | - unused_import: error |
11 | | - unused_local_variable: error |
12 | | - dead_code: error |
13 | | -linter: |
14 | | - rules: |
15 | | - - always_declare_return_types |
16 | | - - always_put_control_body_on_new_line |
17 | | - - always_put_required_named_parameters_first |
18 | | - - always_require_non_null_named_parameters |
19 | | - - always_specify_types |
20 | | - - annotate_overrides |
21 | | - - avoid_annotating_with_dynamic |
22 | | - - avoid_as |
23 | | - - avoid_bool_literals_in_conditional_expressions |
24 | | - - avoid_catches_without_on_clauses |
25 | | - - avoid_catching_errors |
26 | | - - avoid_classes_with_only_static_members |
27 | | - - avoid_double_and_int_checks |
28 | | - - avoid_empty_else |
29 | | - - avoid_field_initializers_in_const_classes |
30 | | - - avoid_function_literals_in_foreach_calls |
31 | | - - avoid_init_to_null |
32 | | - - avoid_js_rounded_ints |
33 | | - - avoid_null_checks_in_equality_operators |
34 | | - - avoid_positional_boolean_parameters |
35 | | - - avoid_private_typedef_functions |
36 | | - - avoid_relative_lib_imports |
37 | | - - avoid_renaming_method_parameters |
38 | | - - avoid_return_types_on_setters |
39 | | - - avoid_returning_null |
40 | | - - avoid_returning_this |
41 | | - - avoid_setters_without_getters |
42 | | - - avoid_single_cascade_in_expression_statements |
43 | | - - avoid_slow_async_io |
44 | | - - avoid_types_as_parameter_names |
45 | | - # - avoid_types_on_closure_parameters |
46 | | - - avoid_unused_constructor_parameters |
47 | | - - await_only_futures |
48 | | - - camel_case_types |
49 | | - - cancel_subscriptions |
50 | | - - cascade_invocations |
51 | | - - close_sinks |
52 | | - - comment_references |
53 | | - - constant_identifier_names |
54 | | - - control_flow_in_finally |
55 | | - - curly_braces_in_flow_control_structures |
56 | | - - directives_ordering |
57 | | - - empty_catches |
58 | | - - empty_constructor_bodies |
59 | | - - empty_statements |
60 | | - - file_names |
61 | | - - hash_and_equals |
62 | | - - implementation_imports |
63 | | - - invariant_booleans |
64 | | - - iterable_contains_unrelated_type |
65 | | - - join_return_with_assignment |
66 | | - - library_names |
67 | | - - library_prefixes |
68 | | - - lines_longer_than_80_chars |
69 | | - - list_remove_unrelated_type |
70 | | - - literal_only_boolean_expressions |
71 | | - - no_adjacent_strings_in_list |
72 | | - - no_duplicate_case_values |
73 | | - - non_constant_identifier_names |
74 | | - - null_closures |
75 | | - # - omit_local_variable_types |
76 | | - - one_member_abstracts |
77 | | - - only_throw_errors |
78 | | - - overridden_fields |
79 | | - - package_api_docs |
80 | | - - package_names |
81 | | - - package_prefixed_library_names |
82 | | - - parameter_assignments |
83 | | - - prefer_adjacent_string_concatenation |
84 | | - - prefer_asserts_in_initializer_lists |
85 | | - # - prefer_bool_in_asserts |
86 | | - - prefer_collection_literals |
87 | | - - prefer_conditional_assignment |
88 | | - - prefer_const_constructors |
89 | | - - prefer_const_constructors_in_immutables |
90 | | - - prefer_const_declarations |
91 | | - - prefer_const_literals_to_create_immutables |
92 | | - - prefer_constructors_over_static_methods |
93 | | - - prefer_contains |
94 | | - - prefer_equal_for_default_values |
95 | | - - prefer_expression_function_bodies |
96 | | - - prefer_final_fields |
97 | | - - prefer_final_locals |
98 | | - - prefer_foreach |
99 | | - - prefer_function_declarations_over_variables |
100 | | - - prefer_generic_function_type_aliases |
101 | | - - prefer_initializing_formals |
102 | | - - prefer_interpolation_to_compose_strings |
103 | | - - prefer_is_empty |
104 | | - - prefer_is_not_empty |
105 | | - - prefer_iterable_whereType |
106 | | - - prefer_single_quotes |
107 | | - - prefer_typing_uninitialized_variables |
108 | | - - public_member_api_docs |
109 | | - - recursive_getters |
110 | | - - slash_for_doc_comments |
111 | | - - sort_constructors_first |
112 | | - - sort_unnamed_constructors_first |
113 | | - # - super_goes_last |
114 | | - - test_types_in_equals |
115 | | - - throw_in_finally |
116 | | - - type_annotate_public_apis |
117 | | - - type_init_formals |
118 | | - - unawaited_futures |
119 | | - - unnecessary_brace_in_string_interps |
120 | | - - unnecessary_const |
121 | | - - unnecessary_getters_setters |
122 | | - - unnecessary_lambdas |
123 | | - - unnecessary_new |
124 | | - - unnecessary_null_aware_assignments |
125 | | - - unnecessary_null_in_if_null_operators |
126 | | - - unnecessary_overrides |
127 | | - - unnecessary_parenthesis |
128 | | - - unnecessary_statements |
129 | | - - unnecessary_this |
130 | | - - unrelated_type_equality_checks |
131 | | - - use_rethrow_when_possible |
132 | | - - use_setters_to_change_properties |
133 | | - - use_string_buffers |
134 | | - - use_to_and_as_if_applicable |
135 | | - - valid_regexps |
136 | | - - void_checks |
| 8 | + exclude: |
| 9 | + - example/**/*.dart |
| 10 | + - test/**/*.dart |
0 commit comments