jscpd icon indicating copy to clipboard operation
jscpd copied to clipboard

[Question]: about percentage

Open JiangWeixian opened this issue 3 years ago • 1 comments

the total.lines calculate in this way https://github.com/kucherenko/jscpd/blob/f94969ae505efc7885713327b28799b86b11e5cd/packages/tokenizer/src/token-map.ts#L48

if tokens will be filtered by mode(), maybe the total.lines will be less than not filtered?

https://github.com/kucherenko/jscpd/blob/f94969ae505efc7885713327b28799b86b11e5cd/packages/tokenizer/src/tokenize.ts#L149

JiangWeixian avatar May 11 '21 07:05 JiangWeixian

Yes, you are right! It is good point to improve

kucherenko avatar May 11 '21 07:05 kucherenko