-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
92 lines (88 loc) · 3.32 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
91
92
# 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`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
- camel_case_types
- camel_case_extensions
- file_names
- package_names
- library_prefixes
- non_constant_identifier_names
- constant_identifier_names
- directives_ordering
- lines_longer_than_80_chars
- curly_braces_in_flow_control_structures
- package_api_docs
- public_member_api_docs
- comment_references
- use_string_in_part_of_directives
- implementation_imports
- avoid_relative_lib_imports
- prefer_relative_imports
- avoid_init_to_null
- prefer_adjacent_string_concatenation
- prefer_interpolation_to_compose_strings
- unnecessary_brace_in_string_interps
- prefer_collection_literals
- prefer_is_empty
- prefer_is_not_empty
- avoid_function_literals_in_foreach_calls
- prefer_iterable_whereType
- prefer_function_declarations_over_variables
- unnecessary_lambdas
- unnecessary_getters_setters
- prefer_expression_function_bodies
- unnecessary_this
- prefer_initializing_formals
- empty_constructor_bodies
- unnecessary_new
- unnecessary_const
- avoid_catches_without_on_clauses
- avoid_catching_errors
- use_rethrow_when_possible
- use_to_and_as_if_applicable
- one_member_abstracts
- avoid_classes_with_only_static_members
- prefer_mixin
- prefer_final_fields
- use_setters_to_change_properties
- avoid_setters_without_getters
- avoid_returning_this
- prefer_typing_uninitialized_variables
- type_annotate_public_apis
- omit_local_variable_types
- avoid_types_on_closure_parameters
- type_init_formals
- avoid_return_types_on_setters
- prefer_generic_function_type_aliases
- avoid_private_typedef_functions
- use_function_type_syntax_for_parameters
- avoid_positional_boolean_parameters
- hash_and_equals
- avoid_equals_and_hash_code_on_mutable_classes
- avoid_null_checks_in_equality_operators
analyzer:
plugins:
- custom_lint
exclude: [ lib/**.freezed.dart, lib/**.g.dart ]
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options