-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
90 lines (86 loc) · 3.09 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
89
90
# 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.
linter:
rules:
- camel_case_types
# - always_specify_types
- prefer_collection_literals
- avoid_shadowing_type_parameters
- do_not_use_environment
- no_runtimeType_toString
- unawaited_futures
- avoid_type_to_string
- avoid_bool_literals_in_conditional_expressions
- avoid_escaping_inner_quotes
- avoid_field_initializers_in_const_classes
- avoid_private_typedef_functions
- avoid_setters_without_getters
- avoid_types_on_closure_parameters
- avoid_unused_constructor_parameters
- avoid_void_async
- cascade_invocations
- deprecated_consistency
- directives_ordering
- join_return_with_assignment
- leading_newlines_in_multiline_strings
- missing_whitespace_between_adjacent_strings
- noop_primitive_operations
- omit_local_variable_types
- one_member_abstracts
- only_throw_errors
- package_api_docs # internal purpose only
- prefer_asserts_in_initializer_lists
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_constructors_over_static_methods
- prefer_final_in_for_each
- prefer_final_locals
- prefer_final_parameters
- prefer_foreach
- prefer_if_elements_to_conditional_expressions
- prefer_int_literals
- prefer_interpolation_to_compose_strings
- prefer_mixin
- prefer_null_aware_method_calls
# - public_member_api_docs
- require_trailing_commas
- sort_constructors_first
- sort_unnamed_constructors_first
- type_annotate_public_apis
- unnecessary_await_in_return
- unnecessary_lambdas
- unnecessary_null_aware_assignments
- unnecessary_null_checks
- unnecessary_nullable_for_final_variable_declarations
- unnecessary_parenthesis
- unnecessary_raw_strings
- use_if_null_to_convert_nulls_to_bools
- use_is_even_rather_than_modulo
- use_named_constants
- use_setters_to_change_properties
- use_string_buffers
- use_to_and_as_if_applicable # Maybe revoke this later
- sort_pub_dependencies
analyzer:
language:
strict-raw-types: true
strong-mode:
implicit-casts: false
# 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