-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
50 lines (46 loc) · 1.61 KB
/
Copy pathanalysis_options.yaml
File metadata and controls
50 lines (46 loc) · 1.61 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
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
include: package:flutter_lints/flutter.yaml
analyzer:
language:
strict-casts: true
strict-raw-types: true
strict-inference: true
linter:
rules:
avoid_print: true
prefer_const_constructors: true
unawaited_futures: true
prefer_final_locals: true
avoid_redundant_argument_values: true
cancel_subscriptions: true
close_sinks: true
literal_only_boolean_expressions: true
no_adjacent_strings_in_list: true
test_types_in_equals: true
throw_in_finally: true
unnecessary_statements: true
always_declare_return_types: true
avoid_catches_without_on_clauses: true
avoid_returning_null_for_void: true
combinators_ordering: true
dangling_library_doc_comments: true
directives_ordering: true
noop_primitive_operations: true
only_throw_errors: true
prefer_asserts_in_initializer_lists: true
prefer_foreach: true
prefer_null_aware_method_calls: true
sort_constructors_first: true
sort_unnamed_constructors_first: true
type_annotate_public_apis: true
use_enums: true
use_if_null_to_convert_nulls_to_bools: true
use_late_for_private_fields_and_variables: true
use_named_constants: true
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options