This repository was archived by the owner on Sep 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 231
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
45 lines (40 loc) · 1.53 KB
/
analysis_options.yaml
File metadata and controls
45 lines (40 loc) · 1.53 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
# Extend the default sub-set of linter/analyzer rules used in google3.
include: package:pedantic/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: false
language:
strict-raw-types: true
errors:
# Permanent inclusions: These are optional hints that are not default on.
unused_element: warning
unused_field: warning
unused_local_variable: warning
# Permanent exclusions: Unlikely to removed.
# =====================
# Allow importing .template.dart files without an [explicit] analyzer error.
uri_has_not_been_generated: ignore
# Ignore our own deprecated symbols (too noisy).
deprecated_member_use_from_same_package: ignore
# Allow having TODOs in the code (too noisy).
todo: ignore
# Security exclusions: We are security reviewed separate from these lints.
# =====================
unsafe_html: ignore
# Temporary exclusions: Can be removed in the future.
# =====================
# Re-enable once we no longer have 200+ analyzer related deprecations.
deprecated_member_use: ignore
# Re-enable this once unused parameters are exempted (e.g. callback(_) {}).
inference_failure_on_untyped_parameter: ignore
linter:
rules:
# Permanent inclusions: These are optional lints that are not default true.
- hash_and_equals
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- overridden_fields
- prefer_function_declarations_over_variables
- prefer_initializing_formals
- prefer_void_to_null
- unnecessary_statements