generated from M4RZB4Ni/Flutter-MVVM-Clean-Architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
56 lines (45 loc) · 1.62 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
49
50
51
52
53
54
55
56
# Defines a set of analysis options to encourage good coding practices in a Flutter project using MVVM and GetX.
# Include the standard set of lint rules recommended by the Flutter team.
include: package:flutter_lints/flutter.yaml
analyzer:
# Enable additional strict checks.
strong-mode:
implicit-casts: false
implicit-dynamic: false
# Exclude files that are generated or that you don't want to analyze.
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- "**/*.gr.dart"
# Customize errors, warnings, and information level issues.
errors:
# Treat missing required parameters as errors.
missing_required_param: error
# Treat deprecated member usage as a warning.
deprecated_member_use: warning
todo: ignore
linter:
rules:
# General best practices.
avoid_print: true
prefer_const_constructors: true
prefer_final_fields: true
prefer_null_aware_operators: true
avoid_relative_lib_imports: true
# Error handling best practices.
avoid_catching_errors: true
avoid_returning_null_for_void: true
# Code readability.
always_declare_return_types: true
annotate_overrides: true
prefer_typing_uninitialized_variables: true
# Performance optimizations.
avoid_redundant_argument_values: true
prefer_collection_literals: true
# UI and design best practices.
avoid_unnecessary_containers: true
prefer_const_literals_to_create_immutables: true
# GetX specific rules.
avoid_classes_with_only_static_members: true
# For more information on configuring analysis options, see:
# https://dart.dev/guides/language/analysis-options