forked from firebase/firebase-functions-dart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
56 lines (52 loc) · 1.65 KB
/
analysis_options.yaml
File metadata and controls
56 lines (52 loc) · 1.65 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
56
include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
errors:
missing_required_param: error
missing_return: error
todo: ignore
linter:
rules:
# Error rules
- avoid_slow_async_io
- cancel_subscriptions
- close_sinks
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- test_types_in_equals
- throw_in_finally
- unnecessary_statements
# Style rules
- always_declare_return_types
- avoid_catching_errors
- avoid_positional_boolean_parameters
- avoid_redundant_argument_values
- avoid_returning_this
- avoid_void_async
- directives_ordering
- discarded_futures
- omit_local_variable_types
- parameter_assignments
- prefer_asserts_with_message
- prefer_constructors_over_static_methods
- prefer_final_in_for_each
- prefer_final_locals
- prefer_if_elements_to_conditional_expressions
- prefer_mixin
- prefer_null_aware_method_calls
- prefer_relative_imports
- require_trailing_commas
- sort_constructors_first
- sort_unnamed_constructors_first
- unawaited_futures
- use_if_null_to_convert_nulls_to_bools
- use_string_buffers
# Disabled rules (too strict or not always applicable)
# - avoid_catches_without_on_clauses (sometimes catching all exceptions is intentional)
# - avoid_dynamic_calls (necessary when working with JSON/dynamic data)
# - cascade_invocations (not always clearer)
# - lines_longer_than_80_chars (too restrictive for modern screens)
# - prefer_expression_function_bodies (block bodies can be clearer)