1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Centralize analysis options (#957)

This commit is contained in:
Brett Morgan
2021-12-01 17:49:51 +11:00
committed by GitHub
parent bdf7ad36da
commit be34b0bf43
39 changed files with 157 additions and 697 deletions

View File

@@ -1,21 +1,6 @@
include: package:flutter_lints/flutter.yaml
analyzer:
strong-mode:
implicit-casts: false
implicit-dynamic: false
include: ../analysis_options.yaml
linter:
rules:
avoid_types_on_closure_parameters: true
avoid_void_async: true
cancel_subscriptions: true
close_sinks: true
directives_ordering: true
# Required because of the numbered sources in lib/src/basics
file_names: false
package_api_docs: true
package_prefixed_library_names: true
test_types_in_equals: true
throw_in_finally: true
unnecessary_statements: true