From 39f5769cd8e92c7a9542c2e31ba80efb10cf54a8 Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Wed, 6 Oct 2021 08:10:37 +0100 Subject: [PATCH] Suppress diagnostics from // HACK comments (#91301) * Suppress diagnostics from // HACK comments --- analysis_options.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index c082de78b2..e5203782a1 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -27,8 +27,9 @@ analyzer: missing_required_param: warning # treat missing returns as a warning (not a hint) missing_return: warning - # allow having TODOs in the code + # allow having TODO/HACK comments in the code todo: ignore + hack: ignore # allow self-reference to deprecated members (we do this because otherwise we have # to annotate every member in every test, assert, etc, when we deprecate something) deprecated_member_use_from_same_package: ignore