-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
54 lines (51 loc) · 1.63 KB
/
analysis_options.yaml
File metadata and controls
54 lines (51 loc) · 1.63 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
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
include: package:dart_flutter_team_lints/analysis_options.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
errors:
lines_longer_than_80_chars: ignore
missing_required_param: error
missing_return: error
unnecessary_lambdas: ignore
linter:
rules:
# Error rules
- avoid_slow_async_io
- cancel_subscriptions
- close_sinks
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
# Style rules
- avoid_positional_boolean_parameters
- avoid_redundant_argument_values
- avoid_returning_this
- avoid_void_async
- discarded_futures
- 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
- sort_constructors_first
- sort_unnamed_constructors_first
- unnecessary_ignore
- use_if_null_to_convert_nulls_to_bools
- use_string_buffers