File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -240,14 +240,15 @@ include: package:pedantic/analysis_options.yaml
240
240
linter :
241
241
rules :
242
242
avoid_shadowing_type_parameters : false
243
- - await_only_futures
243
+ await_only_futures : true
244
244
{% endprettify %}
245
245
246
- <aside class="alert alert-info" markdown="1">
247
- The reason you don't include an initial dash (`- `)
248
- when you specify a value (` : false`) is that
249
- the YAML syntax for key-value maps is slightly different
250
- from the YAML syntax for lists.
246
+ <aside class="alert alert-warning” markdown="1">
247
+ If you disable any rules, then use key-value syntax to enable rules.
248
+ For example, the preceding example can’t use `- await_only_futures`;
249
+ instead, it must use `await_only_futures : true`.
250
+ The reason it can’t use the dash shortcut (`-`) to enable `await_only_futures`
251
+ is that YAML doesn't support mixing list and key-value syntaxes.
251
252
</aside>
252
253
253
254
# # Excluding code from analysis
You can’t perform that action at this time.
0 commit comments