-
Notifications
You must be signed in to change notification settings - Fork 36
/
analysis_options.yaml
56 lines (54 loc) · 1.69 KB
/
analysis_options.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
include: package:flutter_lints/flutter.yaml
analyzer:
exclude: [build/**]
errors:
missing_required_param: error
empty_catches: error
file_names: error
parameter_assignments: error
no_duplicate_case_values: error
linter:
rules:
always_declare_return_types: true
always_require_non_null_named_parameters: true
annotate_overrides: true
avoid_empty_else: true
avoid_init_to_null: true
avoid_null_checks_in_equality_operators: true
avoid_relative_lib_imports: true
avoid_return_types_on_setters: true
avoid_shadowing_type_parameters: true
avoid_types_as_parameter_names: true
camel_case_extensions: true
empty_catches: true
empty_constructor_bodies: true
empty_statements: true
library_names: true
library_prefixes: true
no_duplicate_case_values: true
null_closures: true
prefer_adjacent_string_concatenation: true
prefer_collection_literals: true
prefer_conditional_assignment: true
prefer_contains: true
prefer_final_fields: true
prefer_for_elements_to_map_fromIterable: true
prefer_generic_function_type_aliases: true
prefer_if_null_operators: true
prefer_is_empty: true
prefer_is_not_empty: true
prefer_iterable_whereType: true
prefer_single_quotes: true
prefer_spread_collections: true
recursive_getters: true
slash_for_doc_comments: true
type_init_formals: true
unawaited_futures: true
unnecessary_const: true
unnecessary_new: true
unnecessary_null_in_if_null_operators: true
unnecessary_this: true
unrelated_type_equality_checks: true
use_function_type_syntax_for_parameters: true
use_rethrow_when_possible: true
valid_regexps: true