From aab5747fc457e1b3604e8faa7dc3e6dcd2fb146d Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Tue, 25 Jul 2023 17:07:07 -0700 Subject: [PATCH] Ignore unused parameters in snippet code (#131068) Add `unused_element_parameter` to the codes ignored while analyzing snippets. Fixes https://github.com/flutter/flutter/issues/131067 --- dev/bots/analyze_snippet_code.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/bots/analyze_snippet_code.dart b/dev/bots/analyze_snippet_code.dart index 5669f0cb40..edcbd88cb0 100644 --- a/dev/bots/analyze_snippet_code.dart +++ b/dev/bots/analyze_snippet_code.dart @@ -459,6 +459,7 @@ class _SnippetChecker { '// ignore_for_file: unnecessary_import', '// ignore_for_file: unreachable_from_main', '// ignore_for_file: unused_element', + '// ignore_for_file: unused_element_parameter', '// ignore_for_file: unused_local_variable', ];