jscpd

v3.0.0
Copy/paste detector for programming code, support JavaScript, CoffeeScript, PHP, Ruby, Python, Less, Go, Java, Yaml, C#, C++, C, Puppet, Twig languages
jscpd code-quality code-smells duplication cpd pmd analyze quality copy-paste and 29 more...

all

run-s reset test cov:check doc:html

cov

run-s build test:unit cov:html && opn coverage/index.html

doc

run-s doc:html && opn build/docs/index.html

fix

run-s fix:*

info

npm-scripts-info

test

run-s build test:*

build

run-s clean && run-p build:*

clean

trash build test

reset

git clean -dfx && git reset --hard && npm i

watch

run-s clean build:main && run-p "build:main -- -w" "test:unit -- --watch"

prepare

npm run snyk-protect

version

standard-version

cov:html

nyc report --reporter=html

cov:send

nyc report --reporter=lcov > coverage.lcov && codecov

doc:html

typedoc src/ --target ES6 --mode file --out build/docs --ignoreCompilerErrors

doc:json

typedoc src/ --target ES6 --mode file --json build/docs/typedoc.json

test:cpd

ts-node ./src/cli.ts src

cov:check

nyc report && nyc check-coverage --lines 73 --functions 57 --branches 56

test:lint

tslint --project . && prettier "src/**/*.ts" --write

test:unit

nyc --silent ava

build:main

tsc -p tsconfig.json

fix:tslint

tslint --fix --project .

doc:publish

gh-pages -m "[ci skip] Updates" -d build/docs

fix:prettier

prettier "src/**/*.ts" --write

snyk-protect

snyk protect

prepare-release

run-s all version doc:publish

Metadata

  • MIT
  • >=8.9
  • Unknown
  • released 3/8/2020

Downloads

Maintainers