-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
48 lines (43 loc) · 1.23 KB
/
analysis_options.yaml
File metadata and controls
48 lines (43 loc) · 1.23 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
# Copyright 2025 The Flutter Authors.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
linter:
rules:
# consistency
- avoid_print
- combinators_ordering
- directives_ordering
- lines_longer_than_80_chars
- prefer_asserts_in_initializer_lists
- prefer_const_constructors
- prefer_relative_imports
- prefer_single_quotes
- sort_pub_dependencies
- unnecessary_lambdas
- unnecessary_library_directive
- unnecessary_parenthesis
- unnecessary_statements
- use_is_even_rather_than_modulo
# correctness
- always_declare_return_types
- avoid_annotating_with_dynamic
- avoid_catching_errors
- avoid_dynamic_calls
- comment_references
- conditional_uri_does_not_exist
- only_throw_errors
- test_types_in_equals
- throw_in_finally
- type_annotate_public_apis
- unawaited_futures
- unreachable_from_main
- omit_obvious_local_variable_types
- specify_nonobvious_local_variable_types
- specify_nonobvious_property_types
- strict_top_level_inference