-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
68 lines (58 loc) · 2.44 KB
/
Copy pathanalysis_options.yaml
File metadata and controls
68 lines (58 loc) · 2.44 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
include: package:flutter_lints/flutter.yaml
analyzer:
language:
strict-casts: true
strict-raw-types: true
errors:
todo: ignore
linter:
rules:
# ── Style ──────────────────────────────────────────────────────────────────
- annotate_overrides
- cascade_invocations
- curly_braces_in_flow_control_structures
- directives_ordering
- file_names
- lines_longer_than_80_chars
- non_constant_identifier_names
- prefer_const_constructors
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_final_fields
- prefer_final_locals
- prefer_if_elements_to_conditional_expressions
- prefer_interpolation_to_compose_strings
- prefer_single_quotes
- type_annotate_public_apis
- no_leading_underscores_for_local_identifiers
# ── Safety ─────────────────────────────────────────────────────────────────
- always_declare_return_types
- avoid_catches_without_on_clauses
- avoid_empty_else
- avoid_print
- avoid_unnecessary_containers
- avoid_unused_constructor_parameters
- avoid_web_libraries_in_flutter
- cancel_subscriptions
- depend_on_referenced_packages
- hash_and_equals
- only_throw_errors
- parameter_assignments
- secure_pubspec_urls
- unawaited_futures
- use_rethrow_when_possible
- library_private_types_in_public_api
# ── Flutter ─────────────────────────────────────────────────────────────────
- sized_box_for_whitespace
- sort_child_properties_last
- use_full_hex_values_for_flutter_colors
- use_key_in_widget_constructors
# ── Dart ────────────────────────────────────────────────────────────────────
- avoid_init_to_null
- avoid_private_typedef_functions
- avoid_redundant_argument_values
- unnecessary_const
- unnecessary_new
- unnecessary_string_interpolations
- unnecessary_this
- use_super_parameters