Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

[Rule change] avoid-unrelated-type-assertions should work with is! #889

Closed
@ookami-kb

Description

@ookami-kb

What rule do you want to change?

avoid-unrelated-type-assertions

How will the change be implemented? (New option, new default behavior, etc.)?

New behavior: it should trigger warning on is! operator.

Please provide some example code that this change will affect:

From the current rule example:

final result3 = animal is! NotAnimal; // LINT

What does the rule currently do for this code?

No lint warning triggered.

What will the rule do after it's changed?

Lint warning triggered.

Are you willing to submit a pull request to implement this change?

Not sure.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions