Get a mapping of module name to file path.
config = [ ModuleNameToFilePath.rule ]
Maybe this is useful for some kind of build task?
{ "Api": "src/Api.elm", "Article": "src/Article.elm", "Article.Body": "src/Article/Body.elm", "Asset": "src/Asset.elm", "Page.Article": "src/Page/Article.elm", "Page.Article.Editor": "src/Page/Article/Editor.elm", "Page.Profile": "src/Page/Profile.elm" }
You can try this rule out by running the following command:
elm-review --template jfmengels/elm-review-random-insights/preview --report=json --extract | jq -r '.extracts.ModuleNameToFilePath'
Get a mapping of module name to file path.
config = [ ModuleNameToFilePath.rule ]
Maybe this is useful for some kind of build task?
Example output
{ "Api": "src/Api.elm", "Article": "src/Article.elm", "Article.Body": "src/Article/Body.elm", "Asset": "src/Asset.elm", "Page.Article": "src/Page/Article.elm", "Page.Article.Editor": "src/Page/Article/Editor.elm", "Page.Profile": "src/Page/Profile.elm" }
Try it out
You can try this rule out by running the following command:
elm-review --template jfmengels/elm-review-random-insights/preview --report=json --extract | jq -r '.extracts.ModuleNameToFilePath'