-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
70 lines (67 loc) · 2.17 KB
/
Copy pathanalysis_options.yaml
File metadata and controls
70 lines (67 loc) · 2.17 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
69
70
# Al-Furkan Analysis Options — Strict linting for production-grade code
analyzer:
exclude:
- "تطبيق وحي/**"
- "packages/**"
- "**/*.g.dart"
- "**/*.freezed.dart"
- "l10n/**"
errors:
use_build_context_synchronously: warning
unused_element: warning
unused_local_variable: warning
deprecated_member_use: warning
missing_required_param: error
missing_return: error
invalid_annotation_target: ignore
unnecessary_import: warning
unnecessary_null_comparison: warning
dead_code: warning
avoid_print: warning
include: package:flutter_lints/flutter.yaml
linter:
rules:
# ── Style ──
prefer_single_quotes: false
prefer_const_constructors: false
prefer_const_declarations: false
prefer_final_fields: true
prefer_final_locals: true
unnecessary_this: true
avoid_empty_else: true
avoid_unnecessary_containers: true
sized_box_for_whitespace: true
use_key_in_widget_constructors: true
# ── Correctness ──
always_declare_return_types: true
annotate_overrides: true
empty_statements: true
no_duplicate_case_values: true
no_leading_underscores_for_local_identifiers: true
null_check_on_nullable_type_parameter: true
prefer_void_to_null: true
unnecessary_null_in_if_null_operators: true
unrelated_type_equality_checks: true
valid_regexps: true
# ── Design ──
avoid_classes_with_only_static_members: false
avoid_redundant_argument_values: false
avoid_return_types_on_setters: true
avoid_unused_constructor_parameters: true
camel_case_extensions: true
camel_case_types: true
constant_identifier_names: true
file_names: true
non_constant_identifier_names: true
parameter_assignments: warning
prefer_conditional_assignment: true
prefer_interpolation_to_compose_strings: true
prefer_is_empty: true
prefer_is_not_empty: true
prefer_typing_uninitialized_variables: true
provide_deprecation_message: true
unnecessary_overrides: true
unnecessary_parenthesis: true
unnecessary_string_escapes: true
unnecessary_string_interpolations: true
unnecessary_constructor_name: true