-
Notifications
You must be signed in to change notification settings - Fork 22
/
analysis_options.yaml
48 lines (46 loc) · 1.55 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
include: package:extra_pedantic/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: true
implicit-dynamic: true
exclude:
- build/**
- lib/generated/**
- test/firebase_mock.dart
linter:
rules:
always_put_required_named_parameters_first: true
avoid_bool_literals_in_conditional_expressions: true
avoid_classes_with_only_static_members: false
avoid_field_initializers_in_const_classes: true
avoid_function_literals_in_foreach_calls: true
avoid_positional_boolean_parameters: true
# TODO: Enable this when we set up proper logging
avoid_print: false
avoid_setters_without_getters: true
avoid_types_on_closure_parameters: false
camel_case_extensions: true
camel_case_types: true
cascade_invocations: true
comment_references: true
constant_identifier_names: true
flutter_style_todos: true
literal_only_boolean_expressions: false
non_constant_identifier_names: true
omit_local_variable_types: false
one_member_abstracts: true
overridden_fields: true
prefer_const_constructors: true
prefer_constructors_over_static_methods: true
prefer_function_declarations_over_variables: true
prefer_int_literals: true
prefer_interpolation_to_compose_strings: true
prefer_mixin: false
prefer_single_quotes: true
sort_constructors_first: true
type_annotate_public_apis: false
unnecessary_brace_in_string_interps: true
unnecessary_lambdas: true
unnecessary_statements: true
unnecessary_this: true
use_setters_to_change_properties: true