https://github.com/paulvollmer/jsinspector
find code duplication with dynamic threshold and return report matrix
https://github.com/paulvollmer/jsinspector
clean-code code-analysis duplication javascript refactoring
Last synced: 20 days ago
JSON representation
find code duplication with dynamic threshold and return report matrix
- Host: GitHub
- URL: https://github.com/paulvollmer/jsinspector
- Owner: paulvollmer
- License: mit
- Created: 2017-06-14T18:14:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-29T22:53:37.000Z (about 6 years ago)
- Last Synced: 2024-10-04T23:41:22.722Z (9 months ago)
- Topics: clean-code, code-analysis, duplication, javascript, refactoring
- Language: JavaScript
- Homepage:
- Size: 1.01 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# jsinspector [](https://travis-ci.org/paulvollmer/jsinspector) [](https://github.com/paulvollmer/jsinspector/blob/master/LICENSE)
Detect copy-pasted and structurally similar JavaScript code based on the `jsinspect` tool but with a automated threshold parameter.
the tool will be count the threshold up to the highest number to find the biggest code duplication.**This is experimental, do not use in production**
## installation
```
# install it as dependencies
npm install paulvollmer/jsinspector --save# or install it globally
npm install -g paulvollmer/jsinspector
```_nodejs v6 or above is required_
## usage as cli
```
jsinspector -f fixtures/simple.js
```## usage as module
```
inspector('path/to/source.js', MIN_THRESHOLD, function(report) {
console.log(report)
})
```