jfmengels / elm-review-simplify

Provides elm-review rules to simplify your Elm code
https://package.elm-lang.org/packages/jfmengels/elm-review-simplify/latest/
BSD 3-Clause "New" or "Revised" License
20 stars 9 forks source link

Remove check about immediately invoked lambdas with variable name #147

Closed jfmengels closed 1 year ago

jfmengels commented 1 year ago

Removed the check introduced in https://github.com/jfmengels/elm-review-simplify/pull/124

This simplification is pretty nice, but has a few problems:

From feedback, people seem to think the idea is good and that it improves the readability of the code (with the exceptions that probably need some refinement), but I think it stands out too much (especially the non-fixing part) and should therefore be moved to a separate rule, probably in jfmengels/elm-review-code-style, where autofix could be supported by configuring the rule (PRs welcome :smile: )