Skip to content

Commit

Permalink
feat(JSCPD): Started 1.0.0 version development, move from coffee to t…
Browse files Browse the repository at this point in the history
…s, change tokenizer, new report

Change tokenizer from codemirror to prism.js, chaned API, add new formats
  • Loading branch information
Andrii Kucherenko committed Aug 14, 2018
1 parent 9d3ad9c commit 68ca373
Show file tree
Hide file tree
Showing 546 changed files with 19,071 additions and 8,133 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .cpd.yaml

This file was deleted.

11 changes: 5 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# top-most EditorConfig file
# editorconfig.org
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4

[*.coffee]
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
3 changes: 3 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Example Contributing Guidelines

This is an example of GitHub's contributing guidelines file. Check out GitHub's [CONTRIBUTING.md help center article](https://help.github.com/articles/setting-guidelines-for-repository-contributors/) for more information.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* **I'm submitting a ...**
[ ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

* **Summary**



* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)



* **What is the current behavior?** (You can also link to an open issue here)



* **What is the new behavior (if this is a feature change)?**



* **Other information**:
18 changes: 12 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/.idea/*
node_modules/*
test/output.xml
.tmp/
coverage/
lib/
node_modules
build
report
test
src/**.js

coverage
.nyc_output
.jscpd
*.log

yarn.lock
31 changes: 14 additions & 17 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
src/
.tmp/
images/
.git/
test/
scripts/

src
test
report
tsconfig.json
tslint.json
.travis.yml
.coveralls.yml
.cpd.yaml
.gitignore
npm-debug.log
.idea
.editorconfig
todo.md
bin/jscpd.coffee
bin/jscpd.js
1.xml
.github
.prettierignore
.vscode
build/docs
**/*.spec.*
coverage
.nyc_output
*.log
.jscpd
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# package.json is formatted by package managers, so we ignore it here
package.json
22 changes: 10 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
sudo: false
language: node_js

node_js:
- '6'
- '7'
- '8'
- '9'
- '10'

script:
- npm run jscpd
- npm run lint
- npm run coverage
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- 8
- 9
# keep the npm cache to speed up installs
cache:
directories:
- "$HOME/.npm"
after_success:
- npx nyc report --reporter=lcov | npx codecov
- npm run cov:check
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License

Copyright (c) 2013-2017 Andrey Kucherenko
Copyright (c) 2018 Andrii Kucherenko

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

# Copy/paste detector for programming source code.
# Copy/paste detector for programming source code (ALPHA VERSION).

**(IMPORTANT) If you are looking for stable version, try to install jscpd v.0.6.x!!!!**

`jscpd` is a tool for detect copy/paste "design pattern" in programming source code.

Expand Down
4 changes: 3 additions & 1 deletion bin/jscpd
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/usr/bin/env node
require("../lib/cli/cli");

var path = require('path');
require(path.resolve(__dirname, "../build/main/cli"));
4 changes: 0 additions & 4 deletions bin/jscpd.coffee

This file was deleted.

4 changes: 0 additions & 4 deletions bin/jscpd.js

This file was deleted.

Loading

0 comments on commit 68ca373

Please sign in to comment.