From e0ffa9ddab19eca18fe8bbbe6601cabcf9273341 Mon Sep 17 00:00:00 2001 From: John Wimer Date: Thu, 6 Jan 2022 17:51:23 +0100 Subject: [PATCH] Extend pragma to quiet the linter URLs are generated with string interpolation. The https://dart-lang.github.io/linter/lints/unnecessary_brace_in_string_interps.html lint warns that {} braces are used when not necessary. --- chopper_generator/lib/src/generator.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chopper_generator/lib/src/generator.dart b/chopper_generator/lib/src/generator.dart index 19630d2f..a3aae808 100644 --- a/chopper_generator/lib/src/generator.dart +++ b/chopper_generator/lib/src/generator.dart @@ -83,7 +83,7 @@ class ChopperGenerator extends GeneratorForAnnotation { }); final ignore = - '// ignore_for_file: always_put_control_body_on_new_line, always_specify_types, prefer_const_declarations'; + '// ignore_for_file: always_put_control_body_on_new_line, always_specify_types, prefer_const_declarations unnecessary_brace_in_string_interps'; final emitter = DartEmitter(); return DartFormatter().format('$ignore\n${classBuilder.accept(emitter)}'); }