JSCPD reporter for PHPCI
Add this to composer.json
:
composer require sergiu-paraschiv/phpci-jscpd
Then the task to phpci.yml
:
\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"