-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
55 lines (51 loc) · 1.75 KB
/
analysis_options.yaml
File metadata and controls
55 lines (51 loc) · 1.75 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
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.
include: package:lints/recommended.yaml
plugins:
grumpy_lints:
git:
url: https://github.com/necodeIT/grumpy_lints.git
diagnostics:
leaf_preview_must_not_use_injectables_or_navigation: true
must_call_in_constructor: true
abstract_classes_should_set_log_group: true
concrete_classes_should_set_log_tag: true
base_class:
enabled: true
ignorable: true
domain_factory_from_di:
enabled: true
ignorable: true
prefer_domain_di_factory: true
lifecycle_mixin_requires_singleton: true
analyzer:
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
linter:
rules:
public_member_api_docs: true
package_prefixed_library_names: true
library_private_types_in_public_api: true
package_names: true
lines_longer_than_80_chars: false
sort_pub_dependencies: true
join_return_with_assignment: true
prefer_for_elements_to_map_fromIterable: true
null_check_on_nullable_type_parameter: true
enable_null_safety: true
avoid_print: true
prefer_final_locals: true
prefer_const_constructors: true
document_ignores: true
prefer_single_quotes: true