1
- include : package:very_good_analysis/analysis_options .yaml
1
+ include : package:flutter_lints/flutter .yaml
2
2
3
3
analyzer :
4
4
errors :
@@ -7,46 +7,34 @@ analyzer:
7
7
lines_longer_than_80_chars : ignore
8
8
avoid_function_literals_in_foreach_calls : ignore
9
9
control_flow_in_finally : true
10
- exclude :
11
- - ' bin/cache/**'
12
- # the following two are relative to the stocks example and the flutter package respectively
13
- # see https://github.com/dart-lang/sdk/issues/28463
14
- - ' lib/i18n/messages_*.dart'
15
- - ' lib/src/http/**'
16
- # custom
17
- - ' lib/generated/**'
18
- - ' **.g.dart'
19
- # test
20
- - ' test/**'
21
10
22
11
linter :
23
12
rules :
24
- - prefer_const_constructors_in_immutables
25
- - prefer_relative_imports
26
- # - require_trailing_commas
27
- - prefer_final_locals
28
- - avoid_void_async
29
- - always_put_required_named_parameters_first
30
- - unnecessary_await_in_return
31
- - prefer_expression_function_bodies
32
- - avoid_field_initializers_in_const_classes
33
- - file_names
34
- - unnecessary_parenthesis
35
- - prefer_void_to_null
36
- - avoid_bool_literals_in_conditional_expressions
37
- - avoid_returning_null_for_void
38
- - prefer_function_declarations_over_variables
39
- - empty_statements
40
- - prefer_is_not_operator
41
- - cast_nullable_to_non_nullable
42
- - type_annotate_public_apis
43
- - prefer_const_literals_to_create_immutables
44
- - use_named_constants
45
- - use_string_buffers
46
- - unnecessary_raw_strings
47
- - unnecessary_null_checks
48
- - parameter_assignments
49
- - prefer_const_declarations
50
- - sort_unnamed_constructors_first
51
- - use_setters_to_change_properties
52
- - curly_braces_in_flow_control_structures
13
+ prefer_const_constructors_in_immutables : true
14
+ prefer_relative_imports : true
15
+ prefer_final_locals : true
16
+ avoid_void_async : true
17
+ always_put_required_named_parameters_first : true
18
+ unnecessary_await_in_return : true
19
+ prefer_expression_function_bodies : true
20
+ avoid_field_initializers_in_const_classes : true
21
+ file_names : true
22
+ unnecessary_parenthesis : true
23
+ prefer_void_to_null : true
24
+ avoid_bool_literals_in_conditional_expressions : true
25
+ avoid_returning_null_for_void : true
26
+ prefer_function_declarations_over_variables : true
27
+ empty_statements : true
28
+ prefer_is_not_operator : true
29
+ cast_nullable_to_non_nullable : true
30
+ type_annotate_public_apis : true
31
+ prefer_const_literals_to_create_immutables : true
32
+ use_named_constants : true
33
+ use_string_buffers : true
34
+ unnecessary_raw_strings : true
35
+ unnecessary_null_checks : true
36
+ parameter_assignments : true
37
+ prefer_const_declarations : true
38
+ sort_unnamed_constructors_first : true
39
+ use_setters_to_change_properties : true
40
+ curly_braces_in_flow_control_structures : true
0 commit comments