Skip to content

Commit 7c31898

Browse files
committed
conf: Set up directory structure and metadata.
1 parent 206867b commit 7c31898

18 files changed

Lines changed: 178 additions & 238 deletions

File tree

analysis_options.yaml

Lines changed: 163 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,167 @@
1-
# This file configures the analyzer, which statically analyzes Dart code to
2-
# check for errors, warnings, and lints.
3-
#
4-
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5-
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6-
# invoked from the command line by running `flutter analyze`.
7-
8-
# The following line activates a set of recommended lints for Flutter apps,
9-
# packages, and plugins designed to encourage good coding practices.
101
include: package:flutter_lints/flutter.yaml
112

123
linter:
13-
# The lint rules applied to this project can be customized in the
14-
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15-
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at
17-
# https://dart-lang.github.io/linter/lints/index.html.
18-
#
19-
# Instead of disabling a lint rule for the entire project in the
20-
# section below, it can also be suppressed for a single line of code
21-
# or a specific dart file by using the `// ignore: name_of_lint` and
22-
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23-
# producing the lint.
244
rules:
25-
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26-
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27-
28-
# Additional information about this file can be found at
29-
# https://dart.dev/guides/language/analysis-options
5+
always_declare_return_types: true
6+
always_put_required_named_parameters_first: true
7+
always_require_non_null_named_parameters: true
8+
always_use_package_imports: true
9+
annotate_overrides: true
10+
avoid_annotating_with_dynamic: true
11+
avoid_bool_literals_in_conditional_expressions: true
12+
avoid_catches_without_on_clauses: true
13+
avoid_catching_errors: true
14+
avoid_double_and_int_checks: true
15+
avoid_empty_else: true
16+
avoid_equals_and_hash_code_on_mutable_classes: true
17+
avoid_escaping_inner_quotes: true
18+
avoid_field_initializers_in_const_classes: true
19+
avoid_function_literals_in_foreach_calls: true
20+
avoid_implementing_value_types: true
21+
avoid_init_to_null: true
22+
avoid_null_checks_in_equality_operators: true
23+
avoid_print: true
24+
avoid_private_typedef_functions: true
25+
avoid_redundant_argument_values: true
26+
avoid_relative_lib_imports: true
27+
avoid_renaming_method_parameters: true
28+
avoid_return_types_on_setters: true
29+
avoid_returning_null: true
30+
avoid_returning_null_for_future: true
31+
avoid_returning_null_for_void: true
32+
avoid_returning_this: true
33+
avoid_setters_without_getters: true
34+
avoid_shadowing_type_parameters: true
35+
avoid_single_cascade_in_expression_statements: true
36+
avoid_slow_async_io: true
37+
avoid_type_to_string: true
38+
avoid_types_as_parameter_names: true
39+
avoid_unnecessary_containers: true
40+
avoid_unused_constructor_parameters: true
41+
avoid_web_libraries_in_flutter: true
42+
await_only_futures: true
43+
camel_case_extensions: true
44+
camel_case_types: true
45+
cascade_invocations: true
46+
constant_identifier_names: true
47+
control_flow_in_finally: true
48+
close_sinks: true
49+
curly_braces_in_flow_control_structures: true
50+
deprecated_consistency: true
51+
directives_ordering: true
52+
empty_catches: true
53+
empty_constructor_bodies: true
54+
empty_statements: true
55+
eol_at_end_of_file: true
56+
exhaustive_cases: true
57+
file_names: true
58+
flutter_style_todos: true
59+
hash_and_equals: true
60+
implementation_imports: true
61+
invariant_booleans: true
62+
iterable_contains_unrelated_type: true
63+
join_return_with_assignment: true
64+
leading_newlines_in_multiline_strings: true
65+
library_names: true
66+
library_prefixes: true
67+
list_remove_unrelated_type: true
68+
literal_only_boolean_expressions: true
69+
missing_whitespace_between_adjacent_strings: true
70+
no_adjacent_strings_in_list: true
71+
no_duplicate_case_values: true
72+
no_logic_in_create_state: true
73+
no_runtimeType_toString: true
74+
non_constant_identifier_names: true
75+
noop_primitive_operations: true
76+
null_check_on_nullable_type_parameter: true
77+
null_closures: true
78+
omit_local_variable_types: true
79+
one_member_abstracts: true
80+
only_throw_errors: true
81+
overridden_fields: true
82+
package_api_docs: true
83+
package_names: true
84+
package_prefixed_library_names: true
85+
parameter_assignments: true
86+
prefer_adjacent_string_concatenation: true
87+
prefer_asserts_in_initializer_lists: true
88+
prefer_asserts_with_message: true
89+
prefer_collection_literals: true
90+
prefer_conditional_assignment: true
91+
prefer_const_constructors: true
92+
prefer_const_constructors_in_immutables: true
93+
prefer_const_declarations: true
94+
prefer_const_literals_to_create_immutables: true
95+
prefer_constructors_over_static_methods: true
96+
prefer_contains: true
97+
prefer_equal_for_default_values: true
98+
prefer_final_fields: true
99+
prefer_final_in_for_each: true
100+
prefer_final_locals: true
101+
prefer_for_elements_to_map_fromIterable: true
102+
prefer_foreach: true
103+
prefer_function_declarations_over_variables: true
104+
prefer_generic_function_type_aliases: true
105+
prefer_if_elements_to_conditional_expressions: true
106+
prefer_if_null_operators: true
107+
prefer_initializing_formals: true
108+
prefer_inlined_adds: true
109+
prefer_int_literals: true
110+
prefer_interpolation_to_compose_strings: true
111+
prefer_is_empty: true
112+
prefer_is_not_empty: true
113+
prefer_is_not_operator: true
114+
prefer_iterable_whereType: true
115+
prefer_mixin: true
116+
prefer_null_aware_method_calls: true
117+
prefer_null_aware_operators: true
118+
prefer_single_quotes: true
119+
prefer_spread_collections: true
120+
prefer_typing_uninitialized_variables: true
121+
prefer_void_to_null: true
122+
provide_deprecation_message: true
123+
recursive_getters: true
124+
sized_box_for_whitespace: true
125+
slash_for_doc_comments: true
126+
sort_child_properties_last: true
127+
sort_constructors_first: true
128+
sort_pub_dependencies: true
129+
sort_unnamed_constructors_first: true
130+
test_types_in_equals: true
131+
throw_in_finally: true
132+
tighten_type_of_initializing_formals: true
133+
type_annotate_public_apis: true
134+
type_init_formals: true
135+
unawaited_futures: false
136+
unnecessary_await_in_return: true
137+
unnecessary_brace_in_string_interps: true
138+
unnecessary_const: true
139+
unnecessary_constructor_name: true
140+
unnecessary_getters_setters: true
141+
unnecessary_lambdas: true
142+
unnecessary_new: true
143+
unnecessary_null_aware_assignments: true
144+
unnecessary_null_checks: true
145+
unnecessary_null_in_if_null_operators: true
146+
unnecessary_nullable_for_final_variable_declarations: true
147+
unnecessary_overrides: true
148+
unnecessary_parenthesis: true
149+
unnecessary_raw_strings: true
150+
unnecessary_statements: true
151+
unnecessary_string_escapes: true
152+
unnecessary_string_interpolations: true
153+
unnecessary_this: true
154+
unrelated_type_equality_checks: true
155+
unsafe_html: true
156+
use_build_context_synchronously: true
157+
use_full_hex_values_for_flutter_colors: true
158+
use_function_type_syntax_for_parameters: true
159+
use_if_null_to_convert_nulls_to_bools: true
160+
use_is_even_rather_than_modulo: true
161+
use_key_in_widget_constructors: true
162+
use_late_for_private_fields_and_variables: true
163+
use_named_constants: true
164+
use_raw_strings: true
165+
use_rethrow_when_possible: true
166+
valid_regexps: true
167+
void_checks: true

lib/data/config/config.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

lib/data/constants/assets.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

lib/data/constants/colors.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

lib/data/constants/enums.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

lib/data/constants/routes.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

lib/data/constants/styles.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

lib/data/services/local/SAMPLE

Whitespace-only changes.

lib/data/services/remote/SAMPLE

Whitespace-only changes.

lib/domain/models/SAMPLE

Whitespace-only changes.

0 commit comments

Comments
 (0)