jfmengels/elm-review-simplify

String.join / String.concat with a single element

Open

#336 opened on Jan 18, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Elm (10 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (22 stars)
PR merge metrics
 (PR metrics pending)

Description

What the rule should do: String.join "foo" [ a ] => a String.concat [ a ] => a

Example of things the rule would not report:

String.join "foo" [ "bar", "baz" ]
String.concat [ "bar", "baz" ]

Should this be part of the Simplify rule or should it be a new rule? Part of Simplify

I am looking for:

  • Someone to implement it with/for me

Contributor guide