-
Notifications
You must be signed in to change notification settings - Fork 293
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
38 lines (34 loc) · 936 Bytes
/
analysis_options.yaml
File metadata and controls
38 lines (34 loc) · 936 Bytes
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
include: package:flutter_lints/flutter.yaml
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
linter:
rules:
- always_declare_return_types
- require_trailing_commas
- unnecessary_raw_strings
- use_decorated_box
analyzer:
exclude:
- lib/src/l10n/**
plugins:
- custom_lint
custom_lint:
enable_all_lint_rules: false
rules:
# Formatting rules
- newline_before_case
- newline_before_constructor
- newline_before_method
- newline_before_return
- no_equal_then_else
- no_equal_conditions
- avoid_contradictory_expressions
- avoid_constant_conditions
- avoid_collection_equality_checks
- avoid_collection_methods_with_unrelated_types
# - avoid_late_context
- avoid_mounted_in_setstate
- proper_super_calls
- dispose_fields
# - avoid_undisposed_instances
# - dispose_class_fields