enable provide_deprecation_message (#77106)

This commit is contained in:
Michael Goderbauer 2021-03-02 16:34:05 -08:00 committed by GitHub
parent 6586a069bc
commit d3209379ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -181,7 +181,7 @@ linter:
- prefer_spread_collections
- prefer_typing_uninitialized_variables
- prefer_void_to_null
# - provide_deprecation_message # not yet tested
- provide_deprecation_message
# - public_member_api_docs # enabled on a case-by-case basis; see e.g. packages/analysis_options.yaml
- recursive_getters
# - sized_box_for_whitespace # not yet tested

View file

@ -26,7 +26,7 @@ void test3() { }
)
void test4() { }
@deprecated // no message
@deprecated // ignore: provide_deprecation_message
void test5() { }
@Deprecated('Not the right syntax. This feature was deprecated after v1.2.3.')