UNPKG

@itentialopensource/adapter-nuage

Version:
1 lines 572 kB
[{"categories":["Complexity"],"check_name":"argument_count","content":{"body":""},"description":"Function `runErrorAsserts` has 5 arguments (exceeds 4 allowed). Consider refactoring.","fingerprint":"cfe69ad150d1c1e2ed87eece088aa015","location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":139,"end":139}},"other_locations":[],"remediation_points":375000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"file_lines","content":{"body":""},"description":"File `adapterTestUnit.js` has 1456 lines of code (exceeds 250 allowed). Consider refactoring.","fingerprint":"b2397bb59141f32af47509a9ab10dce9","location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1,"end":1675}},"other_locations":[],"remediation_points":18566400,"severity":"major","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"nested_control_flow","content":{"body":""},"description":"Avoid deeply nested control flow statements.","location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":258,"end":264}},"other_locations":[],"remediation_points":450000,"severity":"major","type":"issue","engine_name":"structure","fingerprint":"0cf03e62c69d8dc18f134201a412d1c2"},{"categories":["Complexity"],"check_name":"nested_control_flow","content":{"body":""},"description":"Avoid deeply nested control flow statements.","location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":276,"end":287}},"other_locations":[],"remediation_points":450000,"severity":"major","type":"issue","engine_name":"structure","fingerprint":"f745a031065da61e993f080c92b0eba5"},{"categories":["Complexity"],"check_name":"nested_control_flow","content":{"body":""},"description":"Avoid deeply nested control flow statements.","location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":288,"end":299}},"other_locations":[],"remediation_points":450000,"severity":"major","type":"issue","engine_name":"structure","fingerprint":"5a41d750b11373f89b5704b5309ce574"},{"categories":["Complexity"],"check_name":"file_lines","content":{"body":""},"description":"File `adapterTestIntegration.js` has 1014 lines of code (exceeds 250 allowed). Consider refactoring.","fingerprint":"d9d2159cb07fd6f893338f5f58079ab3","location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1,"end":1231}},"other_locations":[],"remediation_points":12201600,"severity":"major","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"file_lines","content":{"body":""},"description":"File `adapter.js` has 1674 lines of code (exceeds 250 allowed). Consider refactoring.","fingerprint":"35d2a153921331c78d8fbda80eac41ca","location":{"path":"adapter.js","lines":{"begin":1,"end":2883}},"other_locations":[],"remediation_points":21705600,"severity":"major","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_complexity","content":{"body":"# Cognitive Complexity\nCognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.\n\n### A method's cognitive complexity is based on a few simple rules:\n* Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one\n* Code is considered more complex for each \"break in the linear flow of the code\"\n* Code is considered more complex when \"flow breaking structures are nested\"\n\n### Further reading\n* [Cognitive Complexity docs](https://docs.codeclimate.com/v1.0/docs/cognitive-complexity)\n* [Cognitive Complexity: A new way of measuring understandability](https://www.sonarsource.com/docs/CognitiveComplexity.pdf)\n"},"description":"Function `verifyCapability` has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.","fingerprint":"699a28d6da52e66c7447b61eb29cc41e","location":{"path":"adapter.js","lines":{"begin":98,"end":214}},"other_locations":[],"remediation_points":450000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_count","content":{"body":""},"description":"`Nuage` has 49 functions (exceeds 20 allowed). Consider refactoring.","fingerprint":"b74a6c7e14515313696aa9f59bace931","location":{"path":"adapter.js","lines":{"begin":24,"end":2880}},"other_locations":[],"remediation_points":4100000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `verifyCapability` has 82 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"bdd8959abf4c4a8c0ab2e1703e335b17","location":{"path":"adapter.js","lines":{"begin":98,"end":214}},"other_locations":[],"remediation_points":1968000,"severity":"major","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getEnterprises` has 28 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"31097dbcc8bbba05d54deadbaa5e2816","location":{"path":"adapter.js","lines":{"begin":244,"end":288}},"other_locations":[],"remediation_points":672000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `createEnterprise` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"13fa20a7556e3f1b9fa02dacded67697","location":{"path":"adapter.js","lines":{"begin":298,"end":344}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `updateEnterprise` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"d03081d37325eb72b4cd3a01726c5778","location":{"path":"adapter.js","lines":{"begin":355,"end":407}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `deleteEnterprise` has 32 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"e86b2edb1cccb0c7199c4a4ce12204bc","location":{"path":"adapter.js","lines":{"begin":417,"end":464}},"other_locations":[],"remediation_points":768000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getDomains` has 28 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"d54a365f0deb2abbcbd5c4aeb163a69e","location":{"path":"adapter.js","lines":{"begin":474,"end":518}},"other_locations":[],"remediation_points":672000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getEnterpriseDomains` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"5b02ccb15bef343ee61b83779fd2a0f0","location":{"path":"adapter.js","lines":{"begin":528,"end":574}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getDomainTemplates` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"0e1479e8d281358cc6e3d48dd6219db8","location":{"path":"adapter.js","lines":{"begin":584,"end":630}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getDomainTemplate` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"8f745b6b4b9105c3860f5fe21e201096","location":{"path":"adapter.js","lines":{"begin":640,"end":686}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `createDomain` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"4065b23acf531ba03fa24a87b2f54ae1","location":{"path":"adapter.js","lines":{"begin":697,"end":749}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `createDomainTemplate` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"bca9182ce5c7fcbc6a4e72a5a889f9ae","location":{"path":"adapter.js","lines":{"begin":760,"end":812}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `updateDomain` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"8bb1776988299dc49bb01f4cce28421e","location":{"path":"adapter.js","lines":{"begin":823,"end":875}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `updateDomainTemplate` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"5753505f92060ff58fbe7c4adad489f9","location":{"path":"adapter.js","lines":{"begin":886,"end":938}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `deleteDomain` has 32 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"7961b942f551af72ae8b0facf088846f","location":{"path":"adapter.js","lines":{"begin":948,"end":995}},"other_locations":[],"remediation_points":768000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `deleteDomainTemplate` has 32 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"a4c2701d17765b226dc9bdf80b03f3e1","location":{"path":"adapter.js","lines":{"begin":1005,"end":1052}},"other_locations":[],"remediation_points":768000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getZones` has 28 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"7adf1c2185546951f8e8bf778c331b75","location":{"path":"adapter.js","lines":{"begin":1062,"end":1106}},"other_locations":[],"remediation_points":672000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getDomainZones` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"eab626c147700c0b25f77c552dbf53aa","location":{"path":"adapter.js","lines":{"begin":1116,"end":1162}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `createZone` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"c9a2614730cd9e74a7e1594152b21a34","location":{"path":"adapter.js","lines":{"begin":1173,"end":1225}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `updateZone` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"5b496f6b2375bb9a592805ba1b6658e3","location":{"path":"adapter.js","lines":{"begin":1236,"end":1288}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `deleteZone` has 32 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"72cb3ee73444e84f354b1d27d641fc6d","location":{"path":"adapter.js","lines":{"begin":1298,"end":1345}},"other_locations":[],"remediation_points":768000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getSubnets` has 28 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"0f27460b23d507b99b3f0819b9ad529e","location":{"path":"adapter.js","lines":{"begin":1355,"end":1399}},"other_locations":[],"remediation_points":672000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getDomainSubnets` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"4f09b281c18ebd2fd50e3227d31b0987","location":{"path":"adapter.js","lines":{"begin":1409,"end":1455}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getZoneSubnets` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"bb7dd142d101b1e371a349c8f020f8c8","location":{"path":"adapter.js","lines":{"begin":1465,"end":1511}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `createSubnet` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"63f0decc35e0d00ef95cc398e82b3f83","location":{"path":"adapter.js","lines":{"begin":1522,"end":1574}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `updateSubnet` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"81ebcac119b368671f97634b8dd0ab16","location":{"path":"adapter.js","lines":{"begin":1585,"end":1637}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `deleteSubnet` has 32 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"cba7fe259ea3f201db5cbc54cc191016","location":{"path":"adapter.js","lines":{"begin":1647,"end":1694}},"other_locations":[],"remediation_points":768000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getVports` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"28900ad2efc72251d92f15cfc92cffb9","location":{"path":"adapter.js","lines":{"begin":1704,"end":1750}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getVport` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"a0cf5d49f23fb05c859d79c8f2269ddd","location":{"path":"adapter.js","lines":{"begin":1760,"end":1806}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getZoneVports` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"46e498c23fc22612a776a7094fbeed0d","location":{"path":"adapter.js","lines":{"begin":1816,"end":1862}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getSubnetVports` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"5721b669641aa9dcdc364b32ae92d910","location":{"path":"adapter.js","lines":{"begin":1872,"end":1918}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `createVport` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"1df06c4dcaf071eccccc5cc2c99587e0","location":{"path":"adapter.js","lines":{"begin":1929,"end":1981}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `updateVport` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"a398eb4c39adb1893638eeb87855d6e0","location":{"path":"adapter.js","lines":{"begin":1992,"end":2044}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `deleteVport` has 32 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"2cc73b8f3da5c33e499b281b488a00f2","location":{"path":"adapter.js","lines":{"begin":2054,"end":2101}},"other_locations":[],"remediation_points":768000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getVMs` has 28 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"96a9255a817f29276954c7176274cb1a","location":{"path":"adapter.js","lines":{"begin":2111,"end":2155}},"other_locations":[],"remediation_points":672000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getEnterpriseVMs` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"6c7acce7c39df0637f482bdcf1c3aaef","location":{"path":"adapter.js","lines":{"begin":2165,"end":2211}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getDomainVMs` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"d0db65f4d27cbb0c49488286efeead57","location":{"path":"adapter.js","lines":{"begin":2221,"end":2267}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getZoneVMs` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"e6f19bef4ffbb7fac775d9b2523c3aad","location":{"path":"adapter.js","lines":{"begin":2277,"end":2323}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getSubnetVMs` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"9cca5a8b040af8ad2f82c2af2a627c91","location":{"path":"adapter.js","lines":{"begin":2333,"end":2379}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getVportVMs` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"f2c4d05772e7d6c3b902cebddc0bf356","location":{"path":"adapter.js","lines":{"begin":2389,"end":2435}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getVMinterfaces` has 28 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"6bec8b67779fd1bcb0f1448a19cff309","location":{"path":"adapter.js","lines":{"begin":2445,"end":2489}},"other_locations":[],"remediation_points":672000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getDomainVMinterfaces` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"0e22fea859957ef76eca22959dba1860","location":{"path":"adapter.js","lines":{"begin":2499,"end":2545}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getZoneVMinterfaces` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"1f3df09f455eca18375d39874b0c1f72","location":{"path":"adapter.js","lines":{"begin":2555,"end":2601}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getSubnetVMinterfaces` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"5ee7ea02387833f48ed6a845baba232d","location":{"path":"adapter.js","lines":{"begin":2611,"end":2657}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getVportVMinterfaces` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"6a52ebfdf6fb7e989ce8cb2a904d6290","location":{"path":"adapter.js","lines":{"begin":2667,"end":2713}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getVMVMinterfaces` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"b3684acbaee251b400a2a5e28bde1ab3","location":{"path":"adapter.js","lines":{"begin":2723,"end":2769}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getVRSs` has 28 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"7e43bbdd92ae9a5c8bb1ff7d660182cf","location":{"path":"adapter.js","lines":{"begin":2779,"end":2823}},"other_locations":[],"remediation_points":672000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `getVportVminterfaces` has 31 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"f46bc185ecb6cd408537ecb20a0fcf1f","location":{"path":"adapter.js","lines":{"begin":2833,"end":2879}},"other_locations":[],"remediation_points":744000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"nested_control_flow","content":{"body":""},"description":"Avoid deeply nested control flow statements.","location":{"path":"adapter.js","lines":{"begin":139,"end":141}},"other_locations":[],"remediation_points":450000,"severity":"major","type":"issue","engine_name":"structure","fingerprint":"2f903c29ffe9f0701e12caeba64a8102"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `replaceTestVars` has 40 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"8d8c6f1b4fa974629cf80c425e841e1d","location":{"path":"utils/testRunner.js","lines":{"begin":36,"end":95}},"other_locations":[],"remediation_points":960000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_complexity","content":{"body":"# Cognitive Complexity\nCognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.\n\n### A method's cognitive complexity is based on a few simple rules:\n* Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one\n* Code is considered more complex for each \"break in the linear flow of the code\"\n* Code is considered more complex when \"flow breaking structures are nested\"\n\n### Further reading\n* [Cognitive Complexity docs](https://docs.codeclimate.com/v1.0/docs/cognitive-complexity)\n* [Cognitive Complexity: A new way of measuring understandability](https://www.sonarsource.com/docs/CognitiveComplexity.pdf)\n"},"description":"Function `refreshProperties` has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.","fingerprint":"d180b5c12d811e967bc2c574ef2dc60c","location":{"path":"adapterBase.js","lines":{"begin":93,"end":147}},"other_locations":[],"remediation_points":850000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_complexity","content":{"body":"# Cognitive Complexity\nCognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.\n\n### A method's cognitive complexity is based on a few simple rules:\n* Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one\n* Code is considered more complex for each \"break in the linear flow of the code\"\n* Code is considered more complex when \"flow breaking structures are nested\"\n\n### Further reading\n* [Cognitive Complexity docs](https://docs.codeclimate.com/v1.0/docs/cognitive-complexity)\n* [Cognitive Complexity: A new way of measuring understandability](https://www.sonarsource.com/docs/CognitiveComplexity.pdf)\n"},"description":"Function `entityInList` has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.","fingerprint":"97cd33b12fcd26f1e7d1aebdd2da9c73","location":{"path":"adapterBase.js","lines":{"begin":380,"end":401}},"other_locations":[],"remediation_points":350000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_complexity","content":{"body":"# Cognitive Complexity\nCognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.\n\n### A method's cognitive complexity is based on a few simple rules:\n* Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one\n* Code is considered more complex for each \"break in the linear flow of the code\"\n* Code is considered more complex when \"flow breaking structures are nested\"\n\n### Further reading\n* [Cognitive Complexity docs](https://docs.codeclimate.com/v1.0/docs/cognitive-complexity)\n* [Cognitive Complexity: A new way of measuring understandability](https://www.sonarsource.com/docs/CognitiveComplexity.pdf)\n"},"description":"Function `capabilityResults` has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.","fingerprint":"d7470f546ecbe221975ac929ef9eee00","location":{"path":"adapterBase.js","lines":{"begin":412,"end":458}},"other_locations":[],"remediation_points":1450000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `refreshProperties` has 37 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"74de15911bfbe0399149c624fd2c735b","location":{"path":"adapterBase.js","lines":{"begin":93,"end":147}},"other_locations":[],"remediation_points":888000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `capabilityResults` has 35 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"c4f3e62cf443a71df39902cd8d2e41e6","location":{"path":"adapterBase.js","lines":{"begin":412,"end":458}},"other_locations":[],"remediation_points":840000,"severity":"minor","type":"issue","engine_name":"structure"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":528,"end":574}},"remediation_points":11370000,"other_locations":[{"path":"adapter.js","lines":{"begin":584,"end":630}},{"path":"adapter.js","lines":{"begin":640,"end":686}},{"path":"adapter.js","lines":{"begin":1116,"end":1162}},{"path":"adapter.js","lines":{"begin":1409,"end":1455}},{"path":"adapter.js","lines":{"begin":1465,"end":1511}},{"path":"adapter.js","lines":{"begin":1704,"end":1750}},{"path":"adapter.js","lines":{"begin":1760,"end":1806}},{"path":"adapter.js","lines":{"begin":1816,"end":1862}},{"path":"adapter.js","lines":{"begin":1872,"end":1918}},{"path":"adapter.js","lines":{"begin":2165,"end":2211}},{"path":"adapter.js","lines":{"begin":2221,"end":2267}},{"path":"adapter.js","lines":{"begin":2277,"end":2323}},{"path":"adapter.js","lines":{"begin":2333,"end":2379}},{"path":"adapter.js","lines":{"begin":2389,"end":2435}},{"path":"adapter.js","lines":{"begin":2499,"end":2545}},{"path":"adapter.js","lines":{"begin":2555,"end":2601}},{"path":"adapter.js","lines":{"begin":2611,"end":2657}},{"path":"adapter.js","lines":{"begin":2667,"end":2713}},{"path":"adapter.js","lines":{"begin":2723,"end":2769}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 414**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"977d029c10935e8357abb6478e0abece","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":584,"end":630}},"remediation_points":11370000,"other_locations":[{"path":"adapter.js","lines":{"begin":528,"end":574}},{"path":"adapter.js","lines":{"begin":640,"end":686}},{"path":"adapter.js","lines":{"begin":1116,"end":1162}},{"path":"adapter.js","lines":{"begin":1409,"end":1455}},{"path":"adapter.js","lines":{"begin":1465,"end":1511}},{"path":"adapter.js","lines":{"begin":1704,"end":1750}},{"path":"adapter.js","lines":{"begin":1760,"end":1806}},{"path":"adapter.js","lines":{"begin":1816,"end":1862}},{"path":"adapter.js","lines":{"begin":1872,"end":1918}},{"path":"adapter.js","lines":{"begin":2165,"end":2211}},{"path":"adapter.js","lines":{"begin":2221,"end":2267}},{"path":"adapter.js","lines":{"begin":2277,"end":2323}},{"path":"adapter.js","lines":{"begin":2333,"end":2379}},{"path":"adapter.js","lines":{"begin":2389,"end":2435}},{"path":"adapter.js","lines":{"begin":2499,"end":2545}},{"path":"adapter.js","lines":{"begin":2555,"end":2601}},{"path":"adapter.js","lines":{"begin":2611,"end":2657}},{"path":"adapter.js","lines":{"begin":2667,"end":2713}},{"path":"adapter.js","lines":{"begin":2723,"end":2769}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 414**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"977d029c10935e8357abb6478e0abece","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":640,"end":686}},"remediation_points":11370000,"other_locations":[{"path":"adapter.js","lines":{"begin":528,"end":574}},{"path":"adapter.js","lines":{"begin":584,"end":630}},{"path":"adapter.js","lines":{"begin":1116,"end":1162}},{"path":"adapter.js","lines":{"begin":1409,"end":1455}},{"path":"adapter.js","lines":{"begin":1465,"end":1511}},{"path":"adapter.js","lines":{"begin":1704,"end":1750}},{"path":"adapter.js","lines":{"begin":1760,"end":1806}},{"path":"adapter.js","lines":{"begin":1816,"end":1862}},{"path":"adapter.js","lines":{"begin":1872,"end":1918}},{"path":"adapter.js","lines":{"begin":2165,"end":2211}},{"path":"adapter.js","lines":{"begin":2221,"end":2267}},{"path":"adapter.js","lines":{"begin":2277,"end":2323}},{"path":"adapter.js","lines":{"begin":2333,"end":2379}},{"path":"adapter.js","lines":{"begin":2389,"end":2435}},{"path":"adapter.js","lines":{"begin":2499,"end":2545}},{"path":"adapter.js","lines":{"begin":2555,"end":2601}},{"path":"adapter.js","lines":{"begin":2611,"end":2657}},{"path":"adapter.js","lines":{"begin":2667,"end":2713}},{"path":"adapter.js","lines":{"begin":2723,"end":2769}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 414**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"977d029c10935e8357abb6478e0abece","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1116,"end":1162}},"remediation_points":11370000,"other_locations":[{"path":"adapter.js","lines":{"begin":528,"end":574}},{"path":"adapter.js","lines":{"begin":584,"end":630}},{"path":"adapter.js","lines":{"begin":640,"end":686}},{"path":"adapter.js","lines":{"begin":1409,"end":1455}},{"path":"adapter.js","lines":{"begin":1465,"end":1511}},{"path":"adapter.js","lines":{"begin":1704,"end":1750}},{"path":"adapter.js","lines":{"begin":1760,"end":1806}},{"path":"adapter.js","lines":{"begin":1816,"end":1862}},{"path":"adapter.js","lines":{"begin":1872,"end":1918}},{"path":"adapter.js","lines":{"begin":2165,"end":2211}},{"path":"adapter.js","lines":{"begin":2221,"end":2267}},{"path":"adapter.js","lines":{"begin":2277,"end":2323}},{"path":"adapter.js","lines":{"begin":2333,"end":2379}},{"path":"adapter.js","lines":{"begin":2389,"end":2435}},{"path":"adapter.js","lines":{"begin":2499,"end":2545}},{"path":"adapter.js","lines":{"begin":2555,"end":2601}},{"path":"adapter.js","lines":{"begin":2611,"end":2657}},{"path":"adapter.js","lines":{"begin":2667,"end":2713}},{"path":"adapter.js","lines":{"begin":2723,"end":2769}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 414**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"977d029c10935e8357abb6478e0abece","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1409,"end":1455}},"remediation_points":11370000,"other_locations":[{"path":"adapter.js","lines":{"begin":528,"end":574}},{"path":"adapter.js","lines":{"begin":584,"end":630}},{"path":"adapter.js","lines":{"begin":640,"end":686}},{"path":"adapter.js","lines":{"begin":1116,"end":1162}},{"path":"adapter.js","lines":{"begin":1465,"end":1511}},{"path":"adapter.js","lines":{"begin":1704,"end":1750}},{"path":"adapter.js","lines":{"begin":1760,"end":1806}},{"path":"adapter.js","lines":{"begin":1816,"end":1862}},{"path":"adapter.js","lines":{"begin":1872,"end":1918}},{"path":"adapter.js","lines":{"begin":2165,"end":2211}},{"path":"adapter.js","lines":{"begin":2221,"end":2267}},{"path":"adapter.js","lines":{"begin":2277,"end":2323}},{"path":"adapter.js","lines":{"begin":2333,"end":2379}},{"path":"adapter.js","lines":{"begin":2389,"end":2435}},{"path":"adapter.js","lines":{"begin":2499,"end":2545}},{"path":"adapter.js","lines":{"begin":2555,"end":2601}},{"path":"adapter.js","lines":{"begin":2611,"end":2657}},{"path":"adapter.js","lines":{"begin":2667,"end":2713}},{"path":"adapter.js","lines":{"begin":2723,"end":2769}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 414**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"977d029c10935e8357abb6478e0abece","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1465,"end":1511}},"remediation_points":11370000,"other_locations":[{"path":"adapter.js","lines":{"begin":528,"end":574}},{"path":"adapter.js","lines":{"begin":584,"end":630}},{"path":"adapter.js","lines":{"begin":640,"end":686}},{"path":"adapter.js","lines":{"begin":1116,"end":1162}},{"path":"adapter.js","lines":{"begin":1409,"end":1455}},{"path":"adapter.js","lines":{"begin":1704,"end":1750}},{"path":"adapter.js","lines":{"begin":1760,"end":1806}},{"path":"adapter.js","lines":{"begin":1816,"end":1862}},{"path":"adapter.js","lines":{"begin":1872,"end":1918}},{"path":"adapter.js","lines":{"begin":2165,"end":2211}},{"path":"adapter.js","lines":{"begin":2221,"end":2267}},{"path":"adapter.js","lines":{"begin":2277,"end":2323}},{"path":"adapter.js","lines":{"begin":2333,"end":2379}},{"path":"adapter.js","lines":{"begin":2389,"end":2435}},{"path":"adapter.js","lines":{"begin":2499,"end":2545}},{"path":"adapter.js","lines":{"begin":2555,"end":2601}},{"path":"adapter.js","lines":{"begin":2611,"end":2657}},{"path":"adapter.js","lines":{"begin":2667,"end":2713}},{"path":"adapter.js","lines":{"begin":2723,"end":2769}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to r