1
1
# Change analysis_options.yaml and analysis_options_presubmit.yaml
2
2
# together.
3
- include : package:pedantic/analysis_options.1.11.0 .yaml
3
+ include : package:lints/recommended .yaml
4
4
5
5
analyzer :
6
6
errors :
@@ -19,45 +19,19 @@ analyzer:
19
19
- ' testing/test_package_export_error/**'
20
20
linter :
21
21
rules :
22
- - always_declare_return_types
23
- - avoid_dynamic_calls
24
- - avoid_single_cascade_in_expression_statements
25
- - avoid_unused_constructor_parameters
26
- - annotate_overrides
27
- - avoid_init_to_null
28
- - directives_ordering
29
- - no_adjacent_strings_in_list
30
- - package_api_docs
31
- - prefer_final_fields
32
- - prefer_initializing_formals
33
- - prefer_void_to_null
34
- - slash_for_doc_comments
35
- - type_annotate_public_apis
36
- # - unnecessary_brace_in_string_interps
22
+ always_declare_return_types : true
23
+ annotate_overrides : true
24
+ avoid_dynamic_calls : true
25
+ avoid_single_cascade_in_expression_statements : true
26
+ avoid_unused_constructor_parameters : true
27
+ avoid_init_to_null : true
28
+ directives_ordering : true
29
+ no_adjacent_strings_in_list : true
30
+ package_api_docs : true
31
+ prefer_final_fields : true
32
+ prefer_initializing_formals : true
33
+ prefer_void_to_null : true
34
+ slash_for_doc_comments : true
35
+ type_annotate_public_apis : true
37
36
# Work in progress canonical score lints
38
- - avoid_empty_else
39
- - avoid_relative_lib_imports
40
- - avoid_shadowing_type_parameters
41
- - await_only_futures
42
- - camel_case_extensions
43
- - camel_case_types
44
- - curly_braces_in_flow_control_structures
45
- - empty_catches
46
- - file_names
47
- - hash_and_equals
48
- - iterable_contains_unrelated_type
49
- - list_remove_unrelated_type
50
- - no_duplicate_case_values
51
- # - non_constant_identifier_names
52
- - package_prefixed_library_names
53
- - prefer_generic_function_type_aliases
54
- - prefer_is_empty
55
- - prefer_is_not_empty
56
- - prefer_iterable_whereType
57
- - prefer_typing_uninitialized_variables
58
- - provide_deprecation_message
59
- - unawaited_futures
60
- - unnecessary_overrides
61
- - unrelated_type_equality_checks
62
- - valid_regexps
63
- - void_checks
37
+ unawaited_futures : true
0 commit comments