Skip to content

Commit 4b1fc34

Browse files
authored
Removes a non-existing lint rule. (#784)
1 parent 1d1c92a commit 4b1fc34

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

protoc_plugin/lib/src/file_generator.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,7 @@ class FileGenerator extends ProtobufContainer {
408408
if (!_linked) throw StateError('not linked');
409409

410410
var out = makeWriter();
411-
_writeHeading(out, extraIgnores: {
412-
if (enumCount > 0) 'undefined_shown_name',
413-
});
411+
_writeHeading(out);
414412

415413
var importWriter = ImportWriter();
416414

protoc_plugin/lib/src/generated/descriptor.pbenum.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// ignore_for_file: annotate_overrides, camel_case_types
88
// ignore_for_file: constant_identifier_names, library_prefixes
99
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
10-
// ignore_for_file: return_of_invalid_type, undefined_shown_name
10+
// ignore_for_file: return_of_invalid_type
1111
// ignore_for_file: unnecessary_this
1212

1313
import 'dart:core' as $core;

protoc_plugin/test/goldens/topLevelEnum.pbenum

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
// ignore_for_file: annotate_overrides, camel_case_types
88
// ignore_for_file: constant_identifier_names, library_prefixes
99
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
10-
// ignore_for_file: return_of_invalid_type, undefined_shown_name
11-
// ignore_for_file: unnecessary_this
10+
// ignore_for_file: return_of_invalid_type, unnecessary_this
1211

1312
import 'dart:core' as $core;
1413

protoc_plugin/test/goldens/topLevelEnum.pbenum.meta

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@ annotation: {
22
path: 5
33
path: 0
44
sourceFile: test
5-
begin: 455
6-
end: 464
5+
begin: 414
6+
end: 423
77
}
88
annotation: {
99
path: 5
1010
path: 0
1111
path: 2
1212
path: 0
1313
sourceFile: test
14-
begin: 517
15-
end: 523
14+
begin: 476
15+
end: 482
1616
}
1717
annotation: {
1818
path: 5
1919
path: 0
2020
path: 2
2121
path: 1
2222
sourceFile: test
23-
begin: 599
24-
end: 603
23+
begin: 558
24+
end: 562
2525
}
2626
annotation: {
2727
path: 5
2828
path: 0
2929
path: 2
3030
path: 2
3131
sourceFile: test
32-
begin: 677
33-
end: 681
32+
begin: 636
33+
end: 640
3434
}
3535
annotation: {
3636
path: 5
3737
path: 0
3838
path: 2
3939
path: 3
4040
sourceFile: test
41-
begin: 756
42-
end: 764
41+
begin: 715
42+
end: 723
4343
}

0 commit comments

Comments
 (0)