forked from angulardart/angular
-
Notifications
You must be signed in to change notification settings - Fork 15
/
analysis_options.yaml
39 lines (34 loc) · 1.2 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
# Extend the default sub-set of linter/analyzer rules used in google3.
include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
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.
# =====================
# Ignore our own deprecated symbols (too noisy).
deprecated_member_use_from_same_package: ignore
# Allow having TODOs in the code (too noisy).
todo: ignore
# Allow importing .template.dart files without an [explicit] analyzer error.
uri_has_not_been_generated: 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
linter:
rules:
- always_declare_return_types
- prefer_single_quotes
- directives_ordering
- unawaited_futures
- unsafe_html
- use_super_parameters