forked from dart-lang/build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
40 lines (39 loc) · 1.24 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
include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
errors:
unused_import: error
unused_local_variable: error
dead_code: error
todo: ignore
deprecated_member_use_from_same_package: ignore
exclude:
# Prevents extra work during e2e test runs.
- "_test/dart2js_test/**"
# Common top level directories containing generated files in any package.
- "*/build/**"
- "*/.dart_tool/**"
linter:
rules:
always_declare_return_types: true
avoid_bool_literals_in_conditional_expressions: true
avoid_classes_with_only_static_members: true
avoid_returning_this: true
avoid_unused_constructor_parameters: true
cascade_invocations: true
comment_references: true
directives_ordering: true
no_adjacent_strings_in_list: true
omit_local_variable_types: true
only_throw_errors: true
prefer_single_quotes: true
test_types_in_equals: true
throw_in_finally: true
unawaited_futures: true
unnecessary_lambdas: true
unnecessary_parenthesis: true
unnecessary_statements: true
# TODO: https://github.com/google/built_value.dart/issues/1115
library_private_types_in_public_api: false
no_leading_underscores_for_local_identifiers: false