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.

[New rule] avoid_collection_methods_with_unrelated_types (Willing to PR) #701

Closed
@fzyzcjy

Description

@fzyzcjy

Please describe what the rule should do:
Please see https://github.com/dart-lang/linter/issues/1307

If your rule is inspired by other please provide link to it:
https://github.com/dart-lang/linter/issues/1307
https://stackoverflow.com/questions/68251477/dart-flutter-linter-rule-the-type-to-index-a-map-should-be-the-key-type-of-map

What category of rule is this? (place an "X" next to just one item)

[x] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)

Provide 2-3 code examples that this rule will warn about (it will be better if you can provide both good and bad examples):

https://github.com/dart-lang/linter/issues/1307

Are you willing to submit a pull request to implement this rule?
Yes

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions