elm-analyse icon indicating copy to clipboard operation
elm-analyse copied to clipboard

Option to not load certain files

Open sparksp opened this issue 4 years ago • 0 comments

I have an elm file that's approximately 75k lines, auto-generated from a CSS library to provide a function per class name. It takes elm-analyse anywhere from 3 to 6 minutes to parse this file, so I've added it to the excludedPaths list. However it's still loaded & parsed, it's just the results are not output. Is this by design? If so, can an option be added for files that we don't want to load at all?

We can see in the Analyser below the parsedFiles are being filtered (once loaded): https://github.com/stil4m/elm-analyse/blob/d16c93d603192912910fbb08cb4c38f2bef173cc/src/Analyser.elm#L368-L383

I'm happy to help build and test the resolution for this, but wanted some confirmation of what direction to take first.

sparksp avatar Apr 07 '20 20:04 sparksp