5 ms·
Regarding avoiding copy-paste; I'm a JavaScript developer, and from time to time, I run `npx jsinspect src` in the root of my projects to detect copy-paste. The
by wintorez 7y ago
Regarding avoiding copy-paste; I'm a JavaScript developer, and from time to time, I run `npx jsinspect src` in the root of my projects to detect copy-paste. The results are always interesting.
- picod 7y agocool, if this is reliable enough to be part of CI process it will be super useful
- wintorez 7y agoNever ran into a problem with it myself but ¯\_(ツ)_/¯
- dehrmann 7y agoI've got slightly mixed feeling on copy-paste because sometimes it leads to lots of dependencies--some with conflicts--and you would have been better off writing if (s != null && !s.isEmpty()