eslint-plugin-diff icon indicating copy to clipboard operation
eslint-plugin-diff copied to clipboard

Keep tracked files instead of refreshing list of untracked files

Open thatsmydoing opened this issue 1 year ago • 1 comments

https://github.com/paleite/eslint-plugin-diff/pull/27 introduced a massive performance regression with the recommended diff/diff setup. It effectively refreshes the list of untracked files for every unchanged file in the project.

Instead of constantly refreshing the tracked file list, it's better to get the list of tracked files once and we can simply check that a file is not in the list.

thatsmydoing avatar Feb 29 '24 09:02 thatsmydoing

Yeah noticing this as well, it makes the initial lint take really long to run, even when there is nothing to lint

TylerNRobertson avatar Jun 20 '24 15:06 TylerNRobertson