diff --git a/analysis_options.yaml b/analysis_options.yaml index 30c9dd54e8..8c7481e1df 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -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 diff --git a/dev/bots/test/analyze-test-input/root/packages/foo/deprecation.dart b/dev/bots/test/analyze-test-input/root/packages/foo/deprecation.dart index b2e83c810b..9d74f5b720 100644 --- a/dev/bots/test/analyze-test-input/root/packages/foo/deprecation.dart +++ b/dev/bots/test/analyze-test-input/root/packages/foo/deprecation.dart @@ -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.')