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

More "on wrap always returns incoming" composition checks #227

Closed lue-bird closed 9 months ago

lue-bird commented 9 months ago

Free simplifications enabled by the recently added onWrapAlwaysReturnsIncomingCompositionCheck

List.sum << List.singleton --> identity
List.product << List.singleton --> identity
List.concat << List.singleton --> identity
Platform.Cmd.batch << List.singleton --> identity
Platform.Sub.batch << List.singleton --> identity
github-actions[bot] commented 9 months ago

The branch can be tried out by running:

elm-review --template jfmengels/elm-review-simplify/preview