yannickcr / gulp-jscpd Goto Github PK
View Code? Open in Web Editor NEWGulp plugin for the copy/paste detector jscpd
License: MIT License
Gulp plugin for the copy/paste detector jscpd
License: MIT License
The default number '70' means what?
How many lines code can I duplicate?
I would be particularly interested in using the xsl-href
e.g. the XSLT option, that jscpd
supports.
Why do I need a .cpd.yaml file? Since I can set the options via an object.
Can you add support to exclude files or folders?
Please update outdated dependencies:
$ npm outdated
Package Current Wanted Latest Location
jscpd 0.3.6 0.3.6 0.4.0 jscpd
through2 1.1.1 1.1.1 2.0.0 through2
jscpd
seems to be crucial, as version 0.3.6
currently produces warning in newest node:
npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.7","npm":"2.14.2"})
Hi there ;)
in package.json
there is:
"jscpd": "^0.4.2",
it would be better if it was:
"jscpd": "0.4.2",
or even:
"jscpd": "0.4.3",
Now, because of ^
npm downloads version "0.5.0" which has different api so 'gulp-jscpd' throws while executed:
module.js:338
throw err;
^
Error: Cannot find module 'jscpd/src/tokenizer/TokenizerFactory'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/jstrojewski/Projects/swingdev/globality-client/node_modules/gulp-jscpd/lib/gulp-jscpd.js:10:24)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/jstrojewski/Projects/swingdev/globality-client/gulp/jscpd.js:4:13)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at requireDir (/Users/jstrojewski/Projects/swingdev/globality-client/node_modules/require-dir/index.js:116:33)
at Object.<anonymous> (/Users/jstrojewski/Projects/swingdev/globality-client/Gulpfile.js:6:23)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Liftoff.handleArguments (/Users/jstrojewski/local/lib/node_modules/gulp/bin/gulp.js:116:3)
at Liftoff.<anonymous> (/Users/jstrojewski/local/lib/node_modules/gulp/node_modules/liftoff/index.js:192:16)
at module.exports (/Users/jstrojewski/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/flagged-respawn/index.js:17:3)
at Liftoff.<anonymous> (/Users/jstrojewski/local/lib/node_modules/gulp/node_modules/liftoff/index.js:185:9)
at /Users/jstrojewski/local/lib/node_modules/gulp/node_modules/liftoff/index.js:159:9
at /Users/jstrojewski/local/lib/node_modules/gulp/node_modules/v8flags/index.js:79:12
at /Users/jstrojewski/local/lib/node_modules/gulp/node_modules/v8flags/index.js:35:7
at doNTCallback0 (node.js:407:9)
at process._tickCallback (node.js:336:13)
at Function.Module.runMain (module.js:477:11)
at startup (node.js:117:18)
at node.js:951:3
So please change package.json
not to use ^
or update library so it works with jscpd 0.5.0
jscpd is currently in version 2.X, your library is based on 0.6.X. Do you think it is possible to upgrade to the newest version?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.