-
Notifications
You must be signed in to change notification settings - Fork 0
/
default_delete_package_list.dart
189 lines (184 loc) · 5.67 KB
/
default_delete_package_list.dart
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
import 'package:pedant/src/core/data/delete_list_item.dart';
const List<DeleteListItem> defaultDeletePackageList = [
..._commonList,
..._databaseList,
..._stateManagementList,
..._frameworkList,
];
const List<DeleteListItem> _commonList = [
DeleteListItem(
nameList: [
"get_it",
],
description:
"The package contains a global generic structure, built on the service locator approach.\n"
"This approach does not make sense, since it can lead to an unnecessary increase in the connectivity of modules and classes,\n"
"if you use it as a structure for primary initialization, and then create instances of classes from this structure, this does not make sense.",
),
DeleteListItem(
nameList: [
"provider",
],
description: "The package is an add-on for the InheritedWidget.\n"
"Please use an InheritedWidget with a static of(context) method to access it, instead of using the whole package.",
),
DeleteListItem(
nameList: [
"flutter_hooks",
"flutter_hooks_bloc",
],
description:
"The build function must be clean and not affect the states of the modules.\n"
"This is also true for initializations of different controllers or other resources,\n"
"which can lead to memory leaks. Using this package may cause problems with memory leaks.",
),
DeleteListItem(
nameList: [
"freezed",
"freezed_annotation",
],
description:
"With the advent of Dart sealed classes, the fried package became unnecessary.\n"
"Please use sealed classes instead of code generation.",
),
DeleteListItem(
nameList: [
"fpdart",
"freezed_result",
],
description: "The package provides an Eather object.\n"
"Error handling should be located in one specific place, for example a controller or Bloc, and in a single form - try catch operator.\n"
"This object complicates the code and its error handling, additional code is also needed to provide error data, for example an error stacktrace.\n"
"This object has no practical meaning.",
),
];
const String _databaseDescription =
"All noSQL packages are not a reliable and scalability way to store data.\n"
"Please use SQL database packages - sqflite, drift.";
const List<DeleteListItem> _databaseList = [
DeleteListItem(
nameList: [
"hive",
"hive_generator",
"hive_generator_plus",
"hive_flutter",
"hive_test",
"hive_local_storage",
"hive_listener",
"json_hive_generator",
],
description: _databaseDescription,
),
DeleteListItem(
nameList: [
"isar",
"isar_generator",
"isar_flutter_libs",
"dio_cache_interceptor_isar_store",
"isar_key_value",
"stash_isar",
"sentry_isar",
],
description: _databaseDescription,
),
DeleteListItem(
nameList: [
"objectbox",
"objectbox_generator",
"objectbox_flutter_libs",
"objectbox_sync_flutter_libs",
"dio_cache_interceptor_objectbox_store",
"stash_objectbox",
"foodb_objectbox_adapter",
],
description: _databaseDescription,
),
DeleteListItem(
nameList: [
"get_storage",
"get_secure_storage",
"get_storage_pro",
],
description: _databaseDescription,
),
];
const List<DeleteListItem> _stateManagementList = [
DeleteListItem(
nameList: [
"hydrated_bloc",
],
description:
"Globally stored Bloc states result in unexpected errors and incompatible states.\n"
"Please manage and design the the Blocs yourself and control the change of his states.",
),
DeleteListItem(
nameList: [
"get",
],
description:
"Global package for state management, built on the service locator approach.\n"
"The package has a huge bunch of problems and bugs, it tries to perform state changes, routing and much more.",
),
DeleteListItem(
nameList: [
"riverpod",
"flutter_riverpod",
"hooks_riverpod",
"riverpod_generator",
"flame_riverpod",
"riverpod_context",
"riverpod_lint",
"shared_preferences_riverpod",
"riverpod_test",
"riverpod_infinite_scroll",
"riverpod_annotation",
"riverpod_repo",
"riverpod_navigator",
"riverpod_mutations",
"hydrated_riverpod",
"riverpod_infinite_scroll_pagination",
"riverpod_navigator_core",
"riverpod_mutations_generator",
"flutter_riverpod_restorable",
"jaspr_riverpod",
"riverpod_analyzer_utils",
"mvvm_riverpod",
"riverpod_extension",
"riverpod_messages",
"riverpod_persistent_state",
"riverpod_testing_library",
"riverpod_state",
"riverpod_builder",
"riverpod_navigation",
"riverpod_mutations_annotation",
"replay_riverpod",
"bloc_riverpod",
"riverpod_mvvm",
"notified_preferences_riverpod",
"offset_iterator_riverpod",
"args_riverpod",
"maac_mvvm_with_riverpod",
"rdev_riverpod_firebase_auth_user",
"riverpod_async_value_widget",
"riverpod_tachyon_plugin",
"bond_form_riverpod",
"riverpod_hover_consumer",
"flutter_riverform",
"rdev_riverpod_firebase_user",
"riverpod_feature_generator",
"utopia_hooks_riverpod",
"rdev_riverpod_versioning",
],
description:
"Management of states using global variables, as a result - not the best control using global resources.",
),
];
const _frameworkList = [
DeleteListItem(
nameList: [
"flutter_screenutil",
],
description:
"The package is useless because Flutter already accepts and converts dimensions as logical pixels under the hood.",
),
];