forked from dart-archive/markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
41 lines (41 loc) · 1.17 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
include: package:pedantic/analysis_options.yaml
analyzer:
language:
strict-inference: true
strict-raw-types: true
strong-mode:
implicit-casts: false
errors:
dead_code: error
override_on_non_overriding_method: error
unused_element: error
unused_import: error
unused_local_variable: error
# TODO(srawlins): Re-enable this once "unused" parameters are exempted.
inference_failure_on_untyped_parameter: ignore
linter:
rules:
#- annotate_overrides
- avoid_null_checks_in_equality_operators
- await_only_futures
- camel_case_types
# https://github.com/dart-lang/linter/issues/574
#- comment_references
- control_flow_in_finally
- directives_ordering
- empty_statements
- hash_and_equals
- implementation_imports
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- non_constant_identifier_names
- omit_local_variable_types
- only_throw_errors
- overridden_fields
- package_api_docs
- prefer_final_fields
- prefer_generic_function_type_aliases
#- prefer_single_quotes
- test_types_in_equals
- throw_in_finally
- unnecessary_brace_in_string_interps