Skip to content

Commit 4e7ea4f

Browse files
eernstgCommit Queue
authored andcommitted
Make type_annotate_public_apis/omit_obvious_property_types incompatible
Change-Id: I6a703160772291f07e6df93cdc51df9ddebe0115 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/429662 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Erik Ernst <[email protected]>
1 parent 0f42d66 commit 4e7ea4f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pkg/linter/lib/src/rules/omit_obvious_property_types.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ class OmitObviousPropertyTypes extends LintRule {
2525
LinterLintCode.omit_obvious_property_types;
2626

2727
@override
28-
List<String> get incompatibleRules => const ['always_specify_types'];
28+
List<String> get incompatibleRules => const [
29+
'always_specify_types',
30+
'type_annotate_public_apis',
31+
];
2932

3033
@override
3134
void registerNodeProcessors(

pkg/linter/lib/src/rules/type_annotate_public_apis.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class TypeAnnotatePublicApis extends LintRule {
2020
@override
2121
DiagnosticCode get diagnosticCode => LinterLintCode.type_annotate_public_apis;
2222

23+
@override
24+
List<String> get incompatibleRules => const ['omit_obvious_property_types'];
25+
2326
@override
2427
void registerNodeProcessors(
2528
NodeLintRegistry registry,

0 commit comments

Comments
 (0)