diff --git a/.automation/test/jscpd/reports/expected-JSCPD.tap b/.automation/test/jscpd/reports/expected-JSCPD.tap index f17c081f..30b7f9c6 100644 --- a/.automation/test/jscpd/reports/expected-JSCPD.tap +++ b/.automation/test/jscpd/reports/expected-JSCPD.tap @@ -14,7 +14,7 @@ ok 11 - html_good_01.html ok 12 - java_good_1.java not ok 13 - javascript_bad_1.js --- - message: Clone found (javascript) \n - /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [119 5 - 126 20] (7 lines, 82 tokens)\n /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [66 5 - 73 18]\n\nClone found (javascript) \n - /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [190 43 - 204 17] (14 lines, 145 tokens)\n /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [61 43 - 75 11]\n\nClone found (javascript) \n - /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [119 5 - 126 20] (7 lines, 82 tokens)\n /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [66 5 - 73 18]\n\n 119 66 } \n 120 67 } \n 121 68 let body = [] \n 122 69 const req = https.request(options, (res) => { \n 123 70 res.on('data', (chunk) => { \n 124 71 body.push(chunk) \n 125 72 }).on('end', () => { \n 126 73 body = Buffer \n\nClone found (javascript) \n - /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [190 43 - 204 17] (14 lines, 145 tokens)\n /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [61 43 - 75 11]\n\n 190 61 , \n 191 62 method 'GET', \n 192 63 headers { \n 193 64 Authorization 'token ' + (process.env.GHE_TOKEN), \n 194 65 'Content-Type' 'application/json' \n 195 66 } \n 196 67 } \n 197 68 let body = [] \n 198 69 const req = https.request(options, (res) => { \n 199 70 res.on('data', (chunk) => { \n 200 71 body.push(chunk) \n 201 72 }).on('end', () => { \n 202 73 body = JSON.parse(Buffer.concat(body)) \n 203 74 body.forEach(item => { \n 204 75 orgRepos \n\nFound 2 clones.\nERROR jscpd found too many duplicates (9.81%) over threshold (0%)\nError ERROR jscpd found too many duplicates (9.81%) over threshold (0%)\n at ThresholdReporter.report (/node_modules/@jscpd/finder/dist/reporters/threshold.js)\n at /node_modules/@jscpd/finder/dist/in-files-detector.js\n at Array.forEach ()\n at /node_modules/@jscpd/finder/dist/in-files-detector.js\n at processTicksAndRejections (node internal/process/task_queues 94 5)\n + message: Clone found (javascript) \n - /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [119 5 - 126 7] (7 lines, 82 tokens)\n /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [66 5 - 73 5]\n\nClone found (javascript) \n - /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [190 9 - 204 9] (14 lines, 145 tokens)\n /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [61 9 - 75 3]\n\nClone found (javascript) \n - /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [119 5 - 126 7] (7 lines, 82 tokens)\n /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [66 5 - 73 5]\n\n 119 66 } \n 120 67 } \n 121 68 let body = [] \n 122 69 const req = https.request(options, (res) => { \n 123 70 res.on('data', (chunk) => { \n 124 71 body.push(chunk) \n 125 72 }).on('end', () => { \n 126 73 body = Buffer \n\nClone found (javascript) \n - /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [190 9 - 204 9] (14 lines, 145 tokens)\n /tmp/lint/.automation/test/jscpd/javascript_bad_1.js [61 9 - 75 3]\n\n 190 61 , \n 191 62 method 'GET', \n 192 63 headers { \n 193 64 Authorization 'token ' + (process.env.GHE_TOKEN), \n 194 65 'Content-Type' 'application/json' \n 195 66 } \n 196 67 } \n 197 68 let body = [] \n 198 69 const req = https.request(options, (res) => { \n 199 70 res.on('data', (chunk) => { \n 200 71 body.push(chunk) \n 201 72 }).on('end', () => { \n 202 73 body = JSON.parse(Buffer.concat(body)) \n 203 74 body.forEach(item => { \n 204 75 orgRepos \n\nFound 2 clones.\nERROR jscpd found too many duplicates (9.81%) over threshold (0%)\nError ERROR jscpd found too many duplicates (9.81%) over threshold (0%)\n at ThresholdReporter.report (/node_modules/@jscpd/finder/dist/reporters/threshold.js)\n at /node_modules/@jscpd/finder/dist/in-files-detector.js\n at Array.forEach ()\n at /node_modules/@jscpd/finder/dist/in-files-detector.js\n at processTicksAndRejections (node internal/process/task_queues 94 5)\n ... ok 14 - json_good_1.json ok 15 - kotlint_good_1.kt @@ -27,7 +27,7 @@ ok 21 - powershell_good_1.ps1 ok 22 - protobuf_good_1.proto not ok 23 - python_bad_1.py --- - message: Clone found (python) \n - /tmp/lint/.automation/test/jscpd/python_bad_1.py [77 70 - 84 16] (7 lines, 77 tokens)\n /tmp/lint/.automation/test/jscpd/python_bad_1.py [50 69 - 55 82]\n\nClone found (python) \n - /tmp/lint/.automation/test/jscpd/python_bad_1.py [77 70 - 84 16] (7 lines, 77 tokens)\n /tmp/lint/.automation/test/jscpd/python_bad_1.py [50 69 - 55 82]\n\n 77 50 ), "r" \n 78 51 ) as query_file \n 79 52 query = "".join(query_file.readlines()) \n 80 53 \n 81 54 payload = {"query" query, "variables" query_variables} \n 82 55 response = requests.post(api_url, data=json.dumps(payload), headers=headers) \n 83 56 \n 84 57 status_code \n\nFound 1 clones.\nERROR jscpd found too many duplicates (3.61%) over threshold (0%)\nError ERROR jscpd found too many duplicates (3.61%) over threshold (0%)\n at ThresholdReporter.report (/node_modules/@jscpd/finder/dist/reporters/threshold.js)\n at /node_modules/@jscpd/finder/dist/in-files-detector.js\n at Array.forEach ()\n at /node_modules/@jscpd/finder/dist/in-files-detector.js\n at processTicksAndRejections (node internal/process/task_queues 94 5)\n + message: Clone found (python) \n - /tmp/lint/.automation/test/jscpd/python_bad_1.py [77 28 - 84 12] (7 lines, 77 tokens)\n /tmp/lint/.automation/test/jscpd/python_bad_1.py [50 27 - 55 2]\n\nClone found (python) \n - /tmp/lint/.automation/test/jscpd/python_bad_1.py [77 28 - 84 12] (7 lines, 77 tokens)\n /tmp/lint/.automation/test/jscpd/python_bad_1.py [50 27 - 55 2]\n\n 77 50 ), "r" \n 78 51 ) as query_file \n 79 52 query = "".join(query_file.readlines()) \n 80 53 \n 81 54 payload = {"query" query, "variables" query_variables} \n 82 55 response = requests.post(api_url, data=json.dumps(payload), headers=headers) \n 83 56 \n 84 57 status_code \n\nFound 1 clones.\nERROR jscpd found too many duplicates (3.61%) over threshold (0%)\nError ERROR jscpd found too many duplicates (3.61%) over threshold (0%)\n at ThresholdReporter.report (/node_modules/@jscpd/finder/dist/reporters/threshold.js)\n at /node_modules/@jscpd/finder/dist/in-files-detector.js\n at Array.forEach ()\n at /node_modules/@jscpd/finder/dist/in-files-detector.js\n at processTicksAndRejections (node internal/process/task_queues 94 5)\n ... ok 24 - r_good_1.r ok 25 - expected-JSCPD.tap diff --git a/dependencies/Pipfile.lock b/dependencies/Pipfile.lock index c4c26544..efeb4eaf 100644 --- a/dependencies/Pipfile.lock +++ b/dependencies/Pipfile.lock @@ -56,10 +56,10 @@ }, "astroid": { "hashes": [ - "sha256:87ae7f2398b8a0ae5638ddecf9987f081b756e0e9fc071aeebdca525671fc4dc", - "sha256:b31c92f545517dcc452f284bc9c044050862fbe6d93d2b3de4a215a6b384bf0d" + "sha256:21d735aab248253531bb0f1e1e6d068f0ee23533e18ae8a6171ff892b98297cf", + "sha256:cfc35498ee64017be059ceffab0a25bedf7548ab76f2bea691c5565896e7128d" ], - "version": "==2.5.0" + "version": "==2.5.1" }, "attrs": { "hashes": [ @@ -85,17 +85,17 @@ }, "boto3": { "hashes": [ - "sha256:95e23684bccdb0e02910fd71586ca2a1941a0f96ba1a8753e5f1e990c8fd25d9", - "sha256:a1dc13aa5fac7bc6df0ca29e0a93e320a7a2370f9fe03cfb7284090d9180b97a" + "sha256:4523eab37ff005d5174083b59382cfd626b7890c08d56ce162a4bd92af7d44df", + "sha256:f3314c513077dd74329380449338b424cb6fe96fceceb436eabafb5586131cfc" ], - "version": "==1.17.14" + "version": "==1.17.17" }, "botocore": { "hashes": [ - "sha256:2a07533de92603607c8b594ff92647f5d5a39e75f66c9476ccd30ed4d6de37ae", - "sha256:38f73dca0e3f2448ad91f6dbff99fc09ec1b2b9250a8b4871c90b8296f87d572" + "sha256:178ce315d19fe0ef33e8ce6754a482d009e8d132c5adcc457f5cf1d99a98753b", + "sha256:931d16867dbb0fa60843204dc88ea01fd9d1ce8c28294ec4865fdf96adddbc29" ], - "version": "==1.20.14" + "version": "==1.20.17" }, "bracex": { "hashes": [ @@ -317,10 +317,10 @@ }, "gitpython": { "hashes": [ - "sha256:8621a7e777e276a5ec838b59280ba5272dd144a18169c36c903d8b38b99f750a", - "sha256:c5347c81d232d9b8e7f47b68a83e5dc92e7952127133c5f2df9133f2c75a1b29" + "sha256:3283ae2fba31c913d857e12e5ba5f9a7772bbc064ae2bb09efafa71b0dd4939b", + "sha256:be27633e7509e58391f10207cd32b2a6cf5b908f92d9cd30da2e514e1137af61" ], - "version": "==3.1.13" + "version": "==3.1.14" }, "idna": { "hashes": [ @@ -581,11 +581,11 @@ }, "pylint": { "hashes": [ - "sha256:81ce108f6342421169ea039ff1f528208c99d2e5a9c4ca95cfc5291be6dfd982", - "sha256:a251b238db462b71d25948f940568bb5b3ae0e37dbaa05e10523f54f83e6cc7e" + "sha256:0e21d3b80b96740909d77206d741aa3ce0b06b41be375d92e1f3244a274c1f8a", + "sha256:d09b0b07ba06bcdff463958f53f23df25e740ecd81895f7d2699ec04bbd8dc3b" ], "index": "pypi", - "version": "==2.7.1" + "version": "==2.7.2" }, "pyparsing": { "hashes": [ @@ -696,10 +696,10 @@ }, "rich": { "hashes": [ - "sha256:1f7c481be658eb27f451c3f714aec5bc1fc2431c28f89848ef589c2392171f2e", - "sha256:86a157008d17c73ee03da80de91e09fc2f7713109ccd4e90496eeb3702bef638" + "sha256:77bd13c72350c4907540be33910c0ec13bebb68fba4986e055fb564338f9e94a", + "sha256:bc7087a7fcca8852784ccccc88d992c23efaf9d7e1dcca991a440d7a779352e2" ], - "version": "==9.11.1" + "version": "==9.12.3" }, "ruamel.yaml": { "hashes": [