Provides elm-review
rules to check for usage of Parser.lineComment
, Parser.multiComment
, Parser.chompUntil
and Parser.chompUntilEndOr
.
As detailed in the bug report, those functions cause the position to become desynchronized, and should not be used. Use the functions from pithub/elm-parser-bug-workaround
instead.
This rule intentionally doesn't provide a fix, because depending on your use case you may want the Before
or After
versions. Check the linked documentation for picking the correct version.
NoBrokenParserFunctions
- Reports usages of the broken functions.
module ReviewConfig exposing (config)
import NoBrokenParserFunctions
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoBrokenParserFunctions.rule
]
You can try the example configuration above out by running the following command:
elm-review --template miniBill/elm-review-no-broken-elm-parser-functions/example
Thanks to Ambue for letting me implement this during work hours!