-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
47 lines (45 loc) · 1.27 KB
/
analysis_options.yaml
File metadata and controls
47 lines (45 loc) · 1.27 KB
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
include: package:flutter_lints/flutter.yaml
analyzer:
strong-mode:
implicit-casts: false
implicit-dynamic: false
exclude:
- "bin/cache/**"
# # the following two are relative to the stocks example and the flutter package respectively
# # see https://github.com/dart-lang/sdk/issues/28463
- "lib/i18n/messages_*.dart"
- "lib/src/http/**"
- "**.sh"
- "lib/util/application_delegates.dart"
- "test/fake_test_data/dummy_test_data.dart"
- "test/health_hacks/widget_test_data.dart"
- "test_driver/**"
# - "integration_test/**"
- "coverage/**"
- ".github/**"
- ".dart_tool"
- "lib/generated_plugin_registrant.dart"
linter:
# In addition to the flutter_lints
rules:
- always_declare_return_types
- avoid_types_on_closure_parameters
- avoid_void_async
- avoid_empty_else
- camel_case_types
- cancel_subscriptions
- close_sinks
- directives_ordering
- flutter_style_todos
- hash_and_equals
- non_constant_identifier_names
- package_api_docs
- package_prefixed_library_names
- prefer_single_quotes
- sort_child_properties_last
- test_types_in_equals
- throw_in_finally
- unawaited_futures
- unnecessary_statements
- unsafe_html
- unnecessary_this