-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
36 lines (32 loc) · 900 Bytes
/
analysis_options.yaml
File metadata and controls
36 lines (32 loc) · 900 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
# Analysis options for dart_sentencepiece_tokenizer
# https://dart.dev/guides/language/analysis-options
include: package:lints/recommended.yaml
analyzer:
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- "build/**"
- ".dart_tool/**"
- "benchmark/**"
linter:
rules:
# Error prevention
- always_declare_return_types
- cancel_subscriptions
- close_sinks
- throw_in_finally
# Style
- avoid_bool_literals_in_conditional_expressions
- avoid_escaping_inner_quotes
- avoid_multiple_declarations_per_line
- avoid_unused_constructor_parameters
- eol_at_end_of_file
- prefer_const_constructors
- prefer_const_declarations
- prefer_final_locals
- prefer_single_quotes
- type_annotate_public_apis
- unawaited_futures
- unnecessary_await_in_return
- unnecessary_parenthesis
- use_is_even_rather_than_modulo