VeryGoodOpenSource / very_good_analysis

Lint rules for Dart and Flutter used internally at Very Good Ventures 🦄
https://pub.dev/packages/very_good_analysis
MIT License
368 stars 38 forks source link

Update Lints #107

Open lishaduck opened 3 months ago

lishaduck commented 3 months ago

Hi, it's me again!

Is your feature request related to a problem? Please describe. Update lints for Dart 3.5 (part of #108)

Describe the solution you'd like Add:

Also, remove

Describe alternatives you've considered Again, put them in manually.

Additional context I'll PR this, if desired. Not really context, but 🤷‍♂️

lishaduck commented 3 months ago

Oh, and the reason for prefer_final_parameters is that it's incompatible with avoid_final_parameters.

alestiago commented 2 months ago

Hi @lishaduck thanks for suggesting these new additions. I haven't had a time to have a deep dive into the false positives and read through the issues. The team will probably jump into these soon.

If you would like to contribute we're open for Pull Requests. From the ones you listed unnecessary_library_name seems like a reasonable addition since it is now recommend, are you interested in drafting a PR for it? It will be nice if we also update the recommendation table with it (see the linter rules tool).


Oh, and the reason for prefer_final_parameters is that it's incompatible with avoid_final_parameters.

Thanks for pointing this out! Feel free to open a Pull Request updating the reason and the team can jump into reviewing it to get it merged 🙌

lishaduck commented 2 months ago

Oh, and type_literal_in_constant_pattern is in recommended now.


I'm looking through the lints repo to find as many exclusion reasons as possible, so I've also updated the list of lints to remove.