Skip to content

Commit

Permalink
deprecate avoid_as (#2439)
Browse files Browse the repository at this point in the history
  • Loading branch information
pq authored Jan 28, 2021
1 parent 5ed3c79 commit f9f7d61
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/src/rules/avoid_as.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,21 @@ performance impact.
HasScrollDirection scrollable = renderObject as dynamic;
```
**DEPRECATED:** This advice is no longer recommended.
The rule will be removed in a future Linter release.
''';

class AvoidAs extends LintRule implements NodeLintRule {
AvoidAs()
: super(
name: 'avoid_as',
description: _desc,
details: _details,
group: Group.style);
name: 'avoid_as',
description: _desc,
details: _details,
group: Group.style,
maturity: Maturity.deprecated,
);

@override
void registerNodeProcessors(
Expand Down

1 comment on commit f9f7d61

@parlough
Copy link
Member

@parlough parlough commented on f9f7d61 Jan 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 Bye!

Please sign in to comment.