Closed jfmengels closed 3 years ago
When NoUnused.Exports removes an element from a module, it doesn't remove the mention of the element from the module's documentation.
NoUnused.Exports
The idea would be, when removing c in the following excerpt, to go from
c
module A exposing (b, c, d) {-| @docs b, c, d -} import B b = 1 c = 1 d = 1
to
module A exposing (b, d) {-| @docs b, d -} import B b = 1 c = 1 d = 1
If c was on a line of its own, then the whole line would be removed. elm-format would remove the remaining extra lines if those appear.
elm-format
{-| @docs c -- this line would simply be removed. @docs b, d -}
elm-syntax does not have an easy way to get the documentation for a module, therefore this is not a trivial task.
elm-syntax
Proposal to add that here: https://github.com/stil4m/elm-syntax/issues/151
When
NoUnused.Exports
removes an element from a module, it doesn't remove the mention of the element from the module's documentation.The idea would be, when removing
c
in the following excerpt, to go fromto
If
c
was on a line of its own, then the whole line would be removed.elm-format
would remove the remaining extra lines if those appear.