Skip to content

Commit 7f50816

Browse files
Adds unnecessary_import to linter ignore list in generated dart tests (#2293)
1 parent 9560fe7 commit 7f50816

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

packages/pigeon/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.2.3
2+
3+
* Adds `unnecessary_import` to linter ignore list in generated dart tests.
4+
15
## 3.2.2
26

37
* Adds `unnecessary_import` to linter ignore list for `package:flutter/foundation.dart`.

packages/pigeon/lib/dart_generator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ void generateTestDart(
603603
indent.writeln('// $generatedCodeWarning');
604604
indent.writeln('// $seeAlsoWarning');
605605
indent.writeln(
606-
'// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis',
606+
'// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, unnecessary_import',
607607
);
608608
indent.writeln('// ignore_for_file: avoid_relative_lib_imports');
609609
indent.writeln('import \'dart:async\';');

packages/pigeon/lib/generator_tools.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'dart:mirrors';
99
import 'ast.dart';
1010

1111
/// The current version of pigeon. This must match the version in pubspec.yaml.
12-
const String pigeonVersion = '3.2.2';
12+
const String pigeonVersion = '3.2.3';
1313

1414
/// Read all the content from [stdin] to a String.
1515
String readStdin() {

packages/pigeon/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: pigeon
22
description: Code generator tool to make communication between Flutter and the host platform type-safe and easier.
33
repository: https://github.com/flutter/packages/tree/main/packages/pigeon
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Apigeon
5-
version: 3.2.2 # This must match the version in lib/generator_tools.dart
5+
version: 3.2.3 # This must match the version in lib/generator_tools.dart
66

77
environment:
88
sdk: ">=2.12.0 <3.0.0"

0 commit comments

Comments
 (0)