-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
54 lines (51 loc) · 1.6 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
include: package:lint/analysis_options.yaml
analyzer:
strong-mode:
implicit-dynamic: true
errors:
todo: ignore
sdk_version_async_exported_from_core: ignore
missing_required_param: error
missing_return: error
exclude:
- 'lib/generated_plugin_*.dart'
- 'bin/cache/**'
- 'lib/**/*.g.dart'
- 'lib/**/*.freezed.dart'
- 'test/**/*.mocks.dart'
- 'test/*.mocks.dart'
linter:
rules:
prefer_single_quotes: true
always_declare_return_types: true
omit_local_variable_types: false
unnecessary_this: false
prefer_collection_literals: false
always_specify_types: true
valid_regexps: true
unnecessary_statements: true
unrelated_type_equality_checks: true
unnecessary_string_interpolations: true
unnecessary_string_escapes: true
unnecessary_parenthesis: true
unnecessary_null_in_if_null_operators: true
unnecessary_null_aware_assignments: true
unnecessary_new: true
unnecessary_const: true
unnecessary_brace_in_string_interps: true
tighten_type_of_initializing_formals: true
test_types_in_equals: true
slash_for_doc_comments: true
prefer_void_to_null: true
prefer_typing_uninitialized_variables: true
prefer_spread_collections: true
prefer_contains: true
prefer_adjacent_string_concatenation: true
package_api_docs: true
no_duplicate_case_values: true
sort_constructors_first: true
avoid_escaping_inner_quotes: false
avoid_classes_with_only_static_members: true
prefer_constructors_over_static_methods: true
file_names: false
constant_identifier_names: false