jfmengels/elm-review-simplify
View on GitHubRule enhancement: Don't do unnecessary destructuring
Open
#29 opened on Jul 20, 2022
enhancementhelp wanted
Repository metrics
- Stars
- (22 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
What the rule should do:
What problems does it solve:
Example of things the rule would report:
view (Model model) =
div []
[ viewA (Model model)
, viewB (Model model)
]
-->
view model =
div []
[ viewA model
, viewB model
]
Example of things the rule would not report:
view (Model model) =
div []
[ viewA (Model model)
, viewB model -- using the extracted model
, viewC model.x -- also using the extracted model
]
Should this be part of the Simplify rule or should it be a new rule?
I think it could be part of the Simplify rule.
I am looking for:
Someone to work on this :)