Skip to content

Commit

Permalink
Add duplication report runner
Browse files Browse the repository at this point in the history
`npm run dupreport` runs jsinspect on src/.
  • Loading branch information
naiveai committed Dec 27, 2017
1 parent e613c4c commit b622924
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .jsinspectrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"threshold": 35,
"identifiers": true,
"literals": true,
"truncate": 100,
"reporter": "default"
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"test-ci": "nyc --reporter=lcovonly --reporter=text-summary npm run test",
"jsdoc": "node_modules/.bin/jsdoc -r src",
"flow": "flow",
"dupreport": "jsinspect src/ || true",
"precommit": "lint-staged"
},
"lint-staged": {
Expand Down Expand Up @@ -112,6 +113,7 @@
"husky": "^0.14.3",
"jsdoc": "^3.4.0",
"less": "^2.7.3",
"jsinspect": "^0.12.7",
"lint-staged": "^6.0.0",
"mocha": "^3.2.0",
"nodemon": "^1.12.5",
Expand Down

0 comments on commit b622924

Please sign in to comment.