mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The `flutter_analyzer_plugin` implements rules previously enforced by the `dev/bots/analyze.dart` check run on the CI, allowing for earlier detection of custom lint violations before a change is uploaded for review. Currently, the plugin implements the following rules: - avoid_future_catch_error - no_double_clamp - no_stopwatches - protect_public_state_subtypes - render_box_intrinsics Towards https://github.com/flutter/flutter/issues/175276
21 lines
745 B
YAML
21 lines
745 B
YAML
include: ../analysis_options.yaml
|
|
|
|
plugins:
|
|
flutter_analyzer_plugin:
|
|
path: ../../dev/flutter_analyzer_plugin
|
|
diagnostics:
|
|
avoid_future_catch_error: true
|
|
|
|
linter:
|
|
rules:
|
|
avoid_catches_without_on_clauses: true
|
|
avoid_catching_errors: false # TODO(ianh): we should refactor the tool codebase to avoid relying on this so much
|
|
comment_references: true
|
|
library_private_types_in_public_api: false # Tool does not have any public API.
|
|
no_runtimeType_toString: false # We use runtimeType for debugging in the tool.
|
|
only_throw_errors: true
|
|
prefer_relative_imports: true
|
|
public_member_api_docs: false # Tool does not have any public API.
|
|
unawaited_futures: true
|
|
unintended_html_in_doc_comment: true
|