Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove undocumented filePathsToIgnore option #2420

Closed
wants to merge 2 commits into from

Conversation

benmccann
Copy link
Member

ref #2397

I did a search on GitHub and can't find anyone using this. If no one complains about it that will free us up to swap fast-glob with a lighter library. For now I left fast-glob in place, but we can follow up to remove it later on assuming no one misses this option

@benmccann benmccann force-pushed the filePathsToIgnore branch from 8e0e0b1 to f022c7e Compare June 26, 2024 03:22
@dummdidumm
Copy link
Member

@jasonlyu123 do you remember why we ever added that? This probably predated the "load the tsconfig" times. I would be ok with removing it in the next svelte-check major.

@benmccann
Copy link
Member Author

When I searched all of GitHub for filePathsToIgnore I saw several other projects such as Astro with the same code. I'm guessing it was probably in some example that got copied

@dummdidumm
Copy link
Member

I think Astro did copy svelte-check for their initial iteration, probably just an oversight to not remove it - sounds like it's safe to remove in the next major then

@jasonlyu123
Copy link
Member

jasonlyu123 commented Jun 27, 2024

filePathsToIgnore is the internal name for the --ignore option. Yeah. it predated the "load the tsconfig". We could probably just remove the ability for it to be a glob pattern and keep the option. The undocumented part should be that it, most likey unintentional, can be a glob pattern.

@dummdidumm
Copy link
Member

Did a quick github search, only one archived repository used a glob pattern. A bunch of others use it but without any patterns. @benmccann I'm therefore closing this PR, but feel free to open a new one that replaces the glob library with a simpler one that also fits our needs, as long as said library can deal with simple patterns (and we need to keep some form of it anyway because of our built-in ignores)

@dummdidumm dummdidumm closed this Jul 3, 2024
@benmccann
Copy link
Member Author

@dummdidumm could you share some example repos? I had done a search and couldn't find any consumers, so I'm not quite sure what patterns need to be supported

@dummdidumm
Copy link
Member

dummdidumm commented Jul 4, 2024

This is the search I did: https://github.com/search?q=%22svelte-check+--ignore%22+language%3Ajson&type=code . Only the pattern "starts with X" needs to be supported (the same we need internally, because of the "ignore node_modules") e.g. people write svelte-check --ignore dist and that means the whole dist folder should be ignored.

@benmccann
Copy link
Member Author

ohhh. I see. I misunderstood this code and searched for filePathsToIgnore. thanks!

@benmccann benmccann deleted the filePathsToIgnore branch July 4, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants