Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 80aabe5

Browse files
authored
tag incompatible type rules (#1968)
1 parent 215aa59 commit 80aabe5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/src/rules/always_specify_types.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ class AlwaysSpecifyTypes extends LintRule implements NodeLintRule {
8888
details: _details,
8989
group: Group.style);
9090

91+
@override
92+
List<String> get incompatibleRules => const ['omit_local_variable_types'];
93+
9194
@override
9295
void registerNodeProcessors(
9396
NodeLintRegistry registry, LinterContext context) {

lib/src/rules/omit_local_variable_types.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class OmitLocalVariableTypes extends LintRule implements NodeLintRule {
5252
details: _details,
5353
group: Group.style);
5454

55+
@override
56+
List<String> get incompatibleRules => const ['always_specify_types'];
57+
5558
@override
5659
void registerNodeProcessors(
5760
NodeLintRegistry registry, LinterContext context) {

0 commit comments

Comments
 (0)