Run elm-analyse on specific files
Opened this issue · 1 comments
Currently we can only run elm-analyse
over entire directories. For larger elm projects this becomes unwieldy, especially if we only want to check if a few changes were correct. It would be awesome if we could run elm-analyse
on specific files.
I briefly looked around and couldn't find a similar request. Sorry if this is a duplicate!
Hi @jscho13. Thanks for your report. Not a duplicate. I will look into the possibilities.
The current design is currently set up as it is due to fact that to build up a proper AST, the precedence of infix operators need to be known. The most obvious option was to parse everything. But maybe this needs to be changed.
At this moment you may have some alternatives.
When you are using elm-analyse during development , maybe start it as a server-mode (-s
). in this mode, all files are loaded once, and from that moment on only files that change. There is a plugin for VSCode that does this for you, and an Atom plugin (shameless plug) that connects to the server mode.
An other alternative, is to ignore the paths that you do not want to analyse using some configuration options (see https://stil4m.github.io/elm-analyse/#/configuration), but I'm not sure if that suits your case.