Wallogit.com
2017 © Pedro Peláez
npm JSCPD plugin for PHPCI
Add this to composer.json:, (*1)
composer require sergiu-paraschiv/phpci-jscpd
Then the task to phpci.yml:, (*2)
\SergiuParaschiv\PHPCI\Plugin\JSCPD:
directory: "frontend"
command: "npm run mess:ci"
allowed_duplication_percent: 5
mess:ci in package.json should be "jscpd --path app/ --languages javascript,jsx --exclude test/mocks/* --reporter xml --limit $LIMIT --output $OUTPUT", (*3)