-
Notifications
You must be signed in to change notification settings - Fork 1
/
analysis_options.yaml
54 lines (52 loc) · 1.74 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
# 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:
rules:
- always_declare_return_types
- always_use_package_imports
- avoid_annotating_with_dynamic
- avoid_bool_literals_in_conditional_expressions
- avoid_positional_boolean_parameters
- avoid_redundant_argument_values
- avoid_unused_constructor_parameters
- conditional_uri_does_not_exist
- directives_ordering
- literal_only_boolean_expressions
- prefer_asserts_with_message
- prefer_null_aware_method_calls
- prefer_single_quotes
- require_trailing_commas
- secure_pubspec_urls
- sized_box_shrink_expand
- sort_pub_dependencies
- sort_unnamed_constructors_first
- throw_in_finally
- unnecessary_await_in_return
- unnecessary_null_checks
- unnecessary_parenthesis
- unnecessary_statements
- use_colored_box
- use_decorated_box
- use_is_even_rather_than_modulo
- use_named_constants
- use_string_buffers
- use_super_parameters
- prefer_final_locals
analyzer:
exclude:
- fvm/
- lib/**/*.config.dart
- test/**/*.config.dart
- lib/**/*.freezed.dart
- lib/**/*.g.dart
- lib/**/*.gform.dart
- lib/generated_plugin_registrant.dart
- lib/ui/styles/moggie_icons.dart
- test/**/*.mocks.dart