You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a file is passed in multiple times it will contribute to the line count each time. A simple example would be if someone accidentally writes tokei src src or tokei src .. The user sees no indication that the same files are being handled twice and gets an erroneous count. Might also be possible to multicount symlinked files (not sure if this is handled, a naive grep tells me not).
Ideally there would be some indication when this happens, but there would be a performance cost in maintaining the hash map (which is how I would handle it, though the paths would need to be normalized first), so it's a tricky one.
I'm thinking this check could be opt-in, opt-out, or just ignore it altogether, up to your discretion.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi there,
If a file is passed in multiple times it will contribute to the line count each time. A simple example would be if someone accidentally writes
tokei src src
ortokei src .
. The user sees no indication that the same files are being handled twice and gets an erroneous count. Might also be possible to multicount symlinked files (not sure if this is handled, a naive grep tells me not).Ideally there would be some indication when this happens, but there would be a performance cost in maintaining the hash map (which is how I would handle it, though the paths would need to be normalized first), so it's a tricky one.
I'm thinking this check could be opt-in, opt-out, or just ignore it altogether, up to your discretion.
Thanks!
The text was updated successfully, but these errors were encountered: