-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
46 lines (40 loc) · 987 Bytes
/
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
#include: package:lints/recommended.yaml
analyzer:
exclude:
# Build
- "build/**"
# Codegen
- "lib/**.g.dart"
# Tests
- "test/**.mocks.dart"
- ".test_coverage.dart"
# Assets
- "assets/**"
# Enable the following options to enable strong mode.
language:
strict-casts: true
strict-raw-types: true
strict-inference: true
errors:
# Info
todo: info
directives_ordering: info
always_declare_return_types: info
# Warning
unsafe_html: warning
no_logic_in_create_state: warning
empty_catches: warning
# Error
always_use_package_imports: error
avoid_relative_lib_imports: error
avoid_slow_async_io: error
avoid_types_as_parameter_names: error
cancel_subscriptions: error
close_sinks: error
valid_regexps: error
always_require_non_null_named_parameters: error
linter:
rules:
# Public packages
public_member_api_docs: false
lines_longer_than_80_chars: false