-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
51 lines (48 loc) · 1.38 KB
/
Copy pathanalysis_options.yaml
File metadata and controls
51 lines (48 loc) · 1.38 KB
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
include: package:flutter_lints/flutter.yaml
analyzer:
language:
strict-inference: true
strict-raw-types: true
strong-mode:
implicit-casts: false
implicit-dynamic: false
linter:
rules:
# Const correctness
- prefer_const_constructors
- prefer_const_literals_to_create_immutables
- prefer_const_constructors_in_immutables
- prefer_final_fields
- prefer_final_locals
- prefer_final_parameters
- unnecessary_const
# Code hygiene
- always_declare_return_types
- avoid_print
- avoid_empty_else
- avoid_unnecessary_containers
- avoid_void_async
- cancel_subscriptions
- close_sinks
- depend_on_referenced_packages
- use_key_in_widget_constructors
- use_build_context_synchronously
# Style and best practices
- sort_constructors_first
- sort_unnamed_constructors_first
- avoid_field_initializers_in_const_classes
- prefer_expression_function_bodies
- unnecessary_this
- directives_ordering
- lines_longer_than_80_chars
- prefer_single_quotes
- require_trailing_commas
# Error prevention
- avoid_init_to_null
- unnecessary_null_checks
- unnecessary_nullable_for_final_variable_declarations
- null_closures
- always_put_control_body_on_new_line
- no_adjacent_strings_in_list
- prefer_if_elements_to_conditional_expressions
- unawaited_futures