-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
88 lines (82 loc) · 2.8 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.
include: package:lints/recommended.yaml
# Uncomment the following section to specify additional rules.
analyzer:
exclude:
- path/to/excluded/files/**
linter:
rules:
- camel_case_types
- prefer_single_quotes
- hash_and_equals
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- unrelated_type_equality_checks
- valid_regexps
#- omit_local_variable_types
- type_annotate_public_apis
- prefer_typing_uninitialized_variables
- avoid_types_on_closure_parameters
#- always_specify_types
- # avoid_print: false # Uncomment to disable the `avoid_print` rule
- avoid_type_to_string
- close_sinks
- empty_statements
- no_adjacent_strings_in_list
- no_duplicate_case_values
- throw_in_finally
- annotate_overrides
- avoid_annotating_with_dynamic
- avoid_classes_with_only_static_members
- avoid_final_parameters
- avoid_setters_without_getters
- avoid_renaming_method_parameters
- avoid_unnecessary_containers
- avoid_void_async
- await_only_futures
- camel_case_extensions
- empty_catches
- file_names
- lines_longer_than_80_chars
- prefer_asserts_in_initializer_lists
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_equal_for_default_values
- prefer_final_locals
- prefer_if_null_operators
- prefer_initializing_formals
- prefer_inlined_adds
- unnecessary_await_in_return
- sort_unnamed_constructors_first
- unnecessary_parenthesis
- unnecessary_raw_strings
- unnecessary_this
- unnecessary_string_interpolations
- unnecessary_string_escapes
- use_colored_box
- use_decorated_box
- secure_pubspec_urls
- sort_pub_dependencies
- use_to_and_as_if_applicable
- use_setters_to_change_properties
- use_named_constants
- use_rethrow_when_possible
- unnecessary_late
- unnecessary_lambdas
# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints
# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options