-
Notifications
You must be signed in to change notification settings - Fork 2
/
analysis_options.yaml
49 lines (44 loc) · 1.35 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
# # Defines a default set of lint rules enforced for
# # projects at Google. For details and rationale,
# # see https://github.com/dart-lang/pedantic#enabled-lints.
include: package:pedantic/analysis_options.yaml
# # For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
# # Uncomment to specify additional rules.
linter:
rules:
- camel_case_types
# - avoid_print
- unnecessary_new
- empty_statements
- hash_and_equals
- no_duplicate_case_values
- prefer_void_to_null
- always_declare_return_types
- always_put_required_named_parameters_first
- avoid_init_to_null
- avoid_returning_null_for_void
- avoid_shadowing_type_parameters
- avoid_single_cascade_in_expression_statements
- avoid_unused_constructor_parameters
- cascade_invocations
- directives_ordering
- empty_constructor_bodies
- file_names
- flutter_style_todos
- implementation_imports
- non_constant_identifier_names
- null_closures
- only_throw_errors
analyzer:
errors:
avoid_as: error
camel_case_types: error
# avoid_print: error
unnecessary_new: error
no_duplicate_case_values: error
prefer_void_to_null: error
avoid_init_to_null: error
avoid_returning_null_for_void: error
empty_constructor_bodies: error
file_names: error
null_closures: error