[{"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 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":1704,"end":1750}},"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":1465,"end":1511}},{"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":1760,"end":1806}},"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":1465,"end":1511}},{"path":"adapter.js","lines":{"begin":1704,"end":1750}},{"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":1816,"end":1862}},"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":1465,"end":1511}},{"path":"adapter.js","lines":{"begin":1704,"end":1750}},{"path":"adapter.js","lines":{"begin":1760,"end":1806}},{"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":1872,"end":1918}},"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":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":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":2165,"end":2211}},"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":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":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":2221,"end":2267}},"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":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":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":2277,"end":2323}},"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":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":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":2333,"end":2379}},"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":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":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":2389,"end":2435}},"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":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":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":2499,"end":2545}},"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":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":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":2555,"end":2601}},"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":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":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":2611,"end":2657}},"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":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":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":2667,"end":2713}},"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":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":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":2723,"end":2769}},"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":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}}],"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 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 26 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1648,"end":1665}},"remediation_points":3960000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":560,"end":577}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":586,"end":603}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":605,"end":622}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":624,"end":641}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":843,"end":860}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":862,"end":879}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":888,"end":905}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":993,"end":1010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1019,"end":1036}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1038,"end":1055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1203,"end":1220}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1222,"end":1239}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1241,"end":1258}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1260,"end":1277}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1279,"end":1296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1444,"end":1461}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1470,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1506}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1508,"end":1525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1527,"end":1544}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1546,"end":1563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1572,"end":1589}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1591,"end":1608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1610,"end":1627}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1646}}],"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 167**.\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":"1df2b3fac3fc630e228d800f04fb4340","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":355,"end":407}},"remediation_points":13950000,"other_locations":[{"path":"adapter.js","lines":{"begin":823,"end":875}},{"path":"adapter.js","lines":{"begin":886,"end":938}},{"path":"adapter.js","lines":{"begin":1236,"end":1288}},{"path":"adapter.js","lines":{"begin":1585,"end":1637}},{"path":"adapter.js","lines":{"begin":1992,"end":2044}}],"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 500**.\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":"5581d9f51e9311c04ca941387eca6834","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":823,"end":875}},"remediation_points":13950000,"other_locations":[{"path":"adapter.js","lines":{"begin":355,"end":407}},{"path":"adapter.js","lines":{"begin":886,"end":938}},{"path":"adapter.js","lines":{"begin":1236,"end":1288}},{"path":"adapter.js","lines":{"begin":1585,"end":1637}},{"path":"adapter.js","lines":{"begin":1992,"end":2044}}],"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 500**.\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":"5581d9f51e9311c04ca941387eca6834","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":886,"end":938}},"remediation_points":13950000,"other_locations":[{"path":"adapter.js","lines":{"begin":355,"end":407}},{"path":"adapter.js","lines":{"begin":823,"end":875}},{"path":"adapter.js","lines":{"begin":1236,"end":1288}},{"path":"adapter.js","lines":{"begin":1585,"end":1637}},{"path":"adapter.js","lines":{"begin":1992,"end":2044}}],"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 500**.\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":"5581d9f51e9311c04ca941387eca6834","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1236,"end":1288}},"remediation_points":13950000,"other_locations":[{"path":"adapter.js","lines":{"begin":355,"end":407}},{"path":"adapter.js","lines":{"begin":823,"end":875}},{"path":"adapter.js","lines":{"begin":886,"end":938}},{"path":"adapter.js","lines":{"begin":1585,"end":1637}},{"path":"adapter.js","lines":{"begin":1992,"end":2044}}],"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 500**.\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":"5581d9f51e9311c04ca941387eca6834","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1585,"end":1637}},"remediation_points":13950000,"other_locations":[{"path":"adapter.js","lines":{"begin":355,"end":407}},{"path":"adapter.js","lines":{"begin":823,"end":875}},{"path":"adapter.js","lines":{"begin":886,"end":938}},{"path":"adapter.js","lines":{"begin":1236,"end":1288}},{"path":"adapter.js","lines":{"begin":1992,"end":2044}}],"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 500**.\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":"5581d9f51e9311c04ca941387eca6834","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1992,"end":2044}},"remediation_points":13950000,"other_locations":[{"path":"adapter.js","lines":{"begin":355,"end":407}},{"path":"adapter.js","lines":{"begin":823,"end":875}},{"path":"adapter.js","lines":{"begin":886,"end":938}},{"path":"adapter.js","lines":{"begin":1236,"end":1288}},{"path":"adapter.js","lines":{"begin":1585,"end":1637}}],"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 500**.\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":"5581d9f51e9311c04ca941387eca6834","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 18 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1078,"end":1097}},"remediation_points":3750000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":317,"end":336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":436,"end":455}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":534,"end":553}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":632,"end":651}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":653,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":712,"end":731}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":754,"end":773}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":775,"end":794}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":850,"end":869}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":871,"end":890}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":892,"end":911}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":913,"end":932}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":934,"end":953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":994,"end":1013}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1015,"end":1034}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1036,"end":1055}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1057,"end":1076}}],"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 160**.\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":"5ee6475c53ba5ce3d16594d410a2abd0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":417,"end":464}},"remediation_points":11700000,"other_locations":[{"path":"adapter.js","lines":{"begin":948,"end":995}},{"path":"adapter.js","lines":{"begin":1005,"end":1052}},{"path":"adapter.js","lines":{"begin":1298,"end":1345}},{"path":"adapter.js","lines":{"begin":1647,"end":1694}},{"path":"adapter.js","lines":{"begin":2054,"end":2101}}],"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 425**.\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":"0e226ddfa369a9102b914265cd61470f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":948,"end":995}},"remediation_points":11700000,"other_locations":[{"path":"adapter.js","lines":{"begin":417,"end":464}},{"path":"adapter.js","lines":{"begin":1005,"end":1052}},{"path":"adapter.js","lines":{"begin":1298,"end":1345}},{"path":"adapter.js","lines":{"begin":1647,"end":1694}},{"path":"adapter.js","lines":{"begin":2054,"end":2101}}],"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 425**.\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":"0e226ddfa369a9102b914265cd61470f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1005,"end":1052}},"remediation_points":11700000,"other_locations":[{"path":"adapter.js","lines":{"begin":417,"end":464}},{"path":"adapter.js","lines":{"begin":948,"end":995}},{"path":"adapter.js","lines":{"begin":1298,"end":1345}},{"path":"adapter.js","lines":{"begin":1647,"end":1694}},{"path":"adapter.js","lines":{"begin":2054,"end":2101}}],"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 425**.\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":"0e226ddfa369a9102b914265cd61470f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1298,"end":1345}},"remediation_points":11700000,"other_locations":[{"path":"adapter.js","lines":{"begin":417,"end":464}},{"path":"adapter.js","lines":{"begin":948,"end":995}},{"path":"adapter.js","lines":{"begin":1005,"end":1052}},{"path":"adapter.js","lines":{"begin":1647,"end":1694}},{"path":"adapter.js","lines":{"begin":2054,"end":2101}}],"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 425**.\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":"0e226ddfa369a9102b914265cd61470f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1647,"end":1694}},"remediation_points":11700000,"other_locations":[{"path":"adapter.js","lines":{"begin":417,"end":464}},{"path":"adapter.js","lines":{"begin":948,"end":995}},{"path":"adapter.js","lines":{"begin":1005,"end":1052}},{"path":"adapter.js","lines":{"begin":1298,"end":1345}},{"path":"adapter.js","lines":{"begin":2054,"end":2101}}],"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 425**.\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":"0e226ddfa369a9102b914265cd61470f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":2054,"end":2101}},"remediation_points":11700000,"other_locations":[{"path":"adapter.js","lines":{"begin":417,"end":464}},{"path":"adapter.js","lines":{"begin":948,"end":995}},{"path":"adapter.js","lines":{"begin":1005,"end":1052}},{"path":"adapter.js","lines":{"begin":1298,"end":1345}},{"path":"adapter.js","lines":{"begin":1647,"end":1694}}],"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 425**.\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":"0e226ddfa369a9102b914265cd61470f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":697,"end":749}},"remediation_points":13920000,"other_locations":[{"path":"adapter.js","lines":{"begin":760,"end":812}},{"path":"adapter.js","lines":{"begin":1173,"end":1225}},{"path":"adapter.js","lines":{"begin":1522,"end":1574}},{"path":"adapter.js","lines":{"begin":1929,"end":1981}}],"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 499**.\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":"4642b83a202fb0200cfd2f4bce9ef714","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":760,"end":812}},"remediation_points":13920000,"other_locations":[{"path":"adapter.js","lines":{"begin":697,"end":749}},{"path":"adapter.js","lines":{"begin":1173,"end":1225}},{"path":"adapter.js","lines":{"begin":1522,"end":1574}},{"path":"adapter.js","lines":{"begin":1929,"end":1981}}],"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 499**.\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":"4642b83a202fb0200cfd2f4bce9ef714","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1173,"end":1225}},"remediation_points":13920000,"other_locations":[{"path":"adapter.js","lines":{"begin":697,"end":749}},{"path":"adapter.js","lines":{"begin":760,"end":812}},{"path":"adapter.js","lines":{"begin":1522,"end":1574}},{"path":"adapter.js","lines":{"begin":1929,"end":1981}}],"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 499**.\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":"4642b83a202fb0200cfd2f4bce9ef714","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1522,"end":1574}},"remediation_points":13920000,"other_locations":[{"path":"adapter.js","lines":{"begin":697,"end":749}},{"path":"adapter.js","lines":{"begin":760,"end":812}},{"path":"adapter.js","lines":{"begin":1173,"end":1225}},{"path":"adapter.js","lines":{"begin":1929,"end":1981}}],"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 499**.\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":"4642b83a202fb0200cfd2f4bce9ef714","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1929,"end":1981}},"remediation_points":13920000,"other_locations":[{"path":"adapter.js","lines":{"begin":697,"end":749}},{"path":"adapter.js","lines":{"begin":760,"end":812}},{"path":"adapter.js","lines":{"begin":1173,"end":1225}},{"path":"adapter.js","lines":{"begin":1522,"end":1574}}],"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 499**.\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":"4642b83a202fb0200cfd2f4bce9ef714","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 7 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":244,"end":288}},"remediation_points":9240000,"other_locations":[{"path":"adapter.js","lines":{"begin":474,"end":518}},{"path":"adapter.js","lines":{"begin":1062,"end":1106}},{"path":"adapter.js","lines":{"begin":1355,"end":1399}},{"path":"adapter.js","lines":{"begin":2111,"end":2155}},{"path":"adapter.js","lines":{"begin":2445,"end":2489}},{"path":"adapter.js","lines":{"begin":2779,"end":2823}}],"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 343**.\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":"d37855d9f6a3727754baffa1dcb069b9","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 7 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":474,"end":518}},"remediation_points":9240000,"other_locations":[{"path":"adapter.js","lines":{"begin":244,"end":288}},{"path":"adapter.js","lines":{"begin":1062,"end":1106}},{"path":"adapter.js","lines":{"begin":1355,"end":1399}},{"path":"adapter.js","lines":{"begin":2111,"end":2155}},{"path":"adapter.js","lines":{"begin":2445,"end":2489}},{"path":"adapter.js","lines":{"begin":2779,"end":2823}}],"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 343**.\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":"d37855d9f6a3727754baffa1dcb069b9","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 7 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1062,"end":1106}},"remediation_points":9240000,"other_locations":[{"path":"adapter.js","lines":{"begin":244,"end":288}},{"path":"adapter.js","lines":{"begin":474,"end":518}},{"path":"adapter.js","lines":{"begin":1355,"end":1399}},{"path":"adapter.js","lines":{"begin":2111,"end":2155}},{"path":"adapter.js","lines":{"begin":2445,"end":2489}},{"path":"adapter.js","lines":{"begin":2779,"end":2823}}],"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 343**.\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":"d37855d9f6a3727754baffa1dcb069b9","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 7 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":1355,"end":1399}},"remediation_points":9240000,"other_locations":[{"path":"adapter.js","lines":{"begin":244,"end":288}},{"path":"adapter.js","lines":{"begin":474,"end":518}},{"path":"adapter.js","lines":{"begin":1062,"end":1106}},{"path":"adapter.js","lines":{"begin":2111,"end":2155}},{"path":"adapter.js","lines":{"begin":2445,"end":2489}},{"path":"adapter.js","lines":{"begin":2779,"end":2823}}],"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 343**.\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":"d37855d9f6a3727754baffa1dcb069b9","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 7 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":2111,"end":2155}},"remediation_points":9240000,"other_locations":[{"path":"adapter.js","lines":{"begin":244,"end":288}},{"path":"adapter.js","lines":{"begin":474,"end":518}},{"path":"adapter.js","lines":{"begin":1062,"end":1106}},{"path":"adapter.js","lines":{"begin":1355,"end":1399}},{"path":"adapter.js","lines":{"begin":2445,"end":2489}},{"path":"adapter.js","lines":{"begin":2779,"end":2823}}],"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 343**.\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":"d37855d9f6a3727754baffa1dcb069b9","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 7 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":2445,"end":2489}},"remediation_points":9240000,"other_locations":[{"path":"adapter.js","lines":{"begin":244,"end":288}},{"path":"adapter.js","lines":{"begin":474,"end":518}},{"path":"adapter.js","lines":{"begin":1062,"end":1106}},{"path":"adapter.js","lines":{"begin":1355,"end":1399}},{"path":"adapter.js","lines":{"begin":2111,"end":2155}},{"path":"adapter.js","lines":{"begin":2779,"end":2823}}],"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 343**.\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":"d37855d9f6a3727754baffa1dcb069b9","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 7 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":2779,"end":2823}},"remediation_points":9240000,"other_locations":[{"path":"adapter.js","lines":{"begin":244,"end":288}},{"path":"adapter.js","lines":{"begin":474,"end":518}},{"path":"adapter.js","lines":{"begin":1062,"end":1106}},{"path":"adapter.js","lines":{"begin":1355,"end":1399}},{"path":"adapter.js","lines":{"begin":2111,"end":2155}},{"path":"adapter.js","lines":{"begin":2445,"end":2489}}],"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 343**.\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":"d37855d9f6a3727754baffa1dcb069b9","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":517,"end":558}},"remediation_points":10290000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":700,"end":741}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":800,"end":841}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":907,"end":948}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":950,"end":991}}],"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 378**.\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":"377a0ce595c017a9368f7df567adfb27","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":700,"end":741}},"remediation_points":10290000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":517,"end":558}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":800,"end":841}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":907,"end":948}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":950,"end":991}}],"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 378**.\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":"377a0ce595c017a9368f7df567adfb27","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":800,"end":841}},"remediation_points":10290000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":517,"end":558}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":700,"end":741}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":907,"end":948}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":950,"end":991}}],"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 378**.\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":"377a0ce595c017a9368f7df567adfb27","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":907,"end":948}},"remediation_points":10290000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":517,"end":558}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":700,"end":741}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":800,"end":841}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":950,"end":991}}],"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 378**.\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":"377a0ce595c017a9368f7df567adfb27","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":950,"end":991}},"remediation_points":10290000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":517,"end":558}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":700,"end":741}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":800,"end":841}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":907,"end":948}}],"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 378**.\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":"377a0ce595c017a9368f7df567adfb27","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":397,"end":434}},"remediation_points":8340000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":495,"end":532}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":593,"end":630}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":811,"end":848}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":955,"end":992}}],"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 313**.\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":"ba9bfdd2b64d25e505188cbe502627c1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":495,"end":532}},"remediation_points":8340000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":397,"end":434}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":593,"end":630}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":811,"end":848}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":955,"end":992}}],"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 313**.\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":"ba9bfdd2b64d25e505188cbe502627c1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":593,"end":630}},"remediation_points":8340000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":397,"end":434}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":495,"end":532}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":811,"end":848}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":955,"end":992}}],"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 313**.\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":"ba9bfdd2b64d25e505188cbe502627c1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":811,"end":848}},"remediation_points":8340000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":397,"end":434}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":495,"end":532}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":593,"end":630}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":955,"end":992}}],"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 313**.\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":"ba9bfdd2b64d25e505188cbe502627c1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":955,"end":992}},"remediation_points":8340000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":397,"end":434}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":495,"end":532}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":593,"end":630}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":811,"end":848}}],"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 313**.\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":"ba9bfdd2b64d25e505188cbe502627c1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1057,"end":1128}},"remediation_points":18390000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1130,"end":1201}}],"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 648**.\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":"b31060278426e5297f3ad4d3437bc60b","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1130,"end":1201}},"remediation_points":18390000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1057,"end":1128}}],"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 648**.\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":"b31060278426e5297f3ad4d3437bc60b","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1298,"end":1369}},"remediation_points":18390000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1442}}],"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 648**.\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":"b31060278426e5297f3ad4d3437bc60b","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1442}},"remediation_points":18390000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1298,"end":1369}}],"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 648**.\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":"b31060278426e5297f3ad4d3437bc60b","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":25,"end":86}},"remediation_points":7620000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":29,"end":90}}],"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 289**.\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":"906735bf5d9ef7329372265d9c815f39","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":29,"end":90}},"remediation_points":7620000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":25,"end":86}}],"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 289**.\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":"a584f3d2b86ab8ac4947827b21656d09","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":643,"end":698}},"remediation_points":14040000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":743,"end":798}}],"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 503**.\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":"ca2e8863a6d9c5cd7740b63a15adaf04","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":743,"end":798}},"remediation_points":14040000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":643,"end":698}}],"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 503**.\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":"ca2e8863a6d9c5cd7740b63a15adaf04","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 4 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":374,"end":395}},"remediation_points":5250000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":472,"end":493}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":570,"end":591}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":689,"end":710}}],"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 210**.\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":"8a7ef0ec41cce564b09a58a114cbcf38","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 4 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":472,"end":493}},"remediation_points":5250000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":374,"end":395}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":570,"end":591}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":689,"end":710}}],"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 210**.\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":"8a7ef0ec41cce564b09a58a114cbcf38","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 4 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":570,"end":591}},"remediation_points":5250000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":374,"end":395}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":472,"end":493}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":689,"end":710}}],"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 210**.\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":"8a7ef0ec41cce564b09a58a114cbcf38","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 4 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":689,"end":710}},"remediation_points":5250000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":374,"end":395}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":472,"end":493}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":570,"end":591}}],"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 210**.\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":"8a7ef0ec41cce564b09a58a114cbcf38","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":277,"end":290}},"remediation_points":2670000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":359,"end":372}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":457,"end":470}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":555,"end":568}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":687}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":796,"end":809}}],"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 124**.\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":"10f96a4b0ebd32f6db33f8e08a9bac9e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":359,"end":372}},"remediation_points":2670000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":277,"end":290}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":457,"end":470}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":555,"end":568}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":687}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":796,"end":809}}],"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 124**.\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":"10f96a4b0ebd32f6db33f8e08a9bac9e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":457,"end":470}},"remediation_points":2670000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":277,"end":290}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":359,"end":372}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":555,"end":568}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":687}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":796,"end":809}}],"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 124**.\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":"10f96a4b0ebd32f6db33f8e08a9bac9e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":555,"end":568}},"remediation_points":2670000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":277,"end":290}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":359,"end":372}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":457,"end":470}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":687}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":796,"end":809}}],"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 124**.\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":"10f96a4b0ebd32f6db33f8e08a9bac9e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":687}},"remediation_points":2670000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":277,"end":290}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":359,"end":372}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":457,"end":470}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":555,"end":568}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":796,"end":809}}],"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 124**.\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":"10f96a4b0ebd32f6db33f8e08a9bac9e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":796,"end":809}},"remediation_points":2670000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":277,"end":290}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":359,"end":372}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":457,"end":470}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":555,"end":568}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":687}}],"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 124**.\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":"10f96a4b0ebd32f6db33f8e08a9bac9e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1099,"end":1112}},"remediation_points":2640000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1114,"end":1127}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1129,"end":1142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1144,"end":1157}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1159,"end":1172}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1174,"end":1187}}],"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 123**.\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":"4c5e335be868bd3ef021882cf3ab1f33","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1114,"end":1127}},"remediation_points":2640000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1099,"end":1112}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1129,"end":1142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1144,"end":1157}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1159,"end":1172}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1174,"end":1187}}],"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 123**.\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":"4c5e335be868bd3ef021882cf3ab1f33","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1129,"end":1142}},"remediation_points":2640000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1099,"end":1112}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1114,"end":1127}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1144,"end":1157}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1159,"end":1172}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1174,"end":1187}}],"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 123**.\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":"4c5e335be868bd3ef021882cf3ab1f33","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1144,"end":1157}},"remediation_points":2640000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1099,"end":1112}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1114,"end":1127}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1129,"end":1142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1159,"end":1172}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1174,"end":1187}}],"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 123**.\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":"4c5e335be868bd3ef021882cf3ab1f33","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1159,"end":1172}},"remediation_points":2640000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1099,"end":1112}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1114,"end":1127}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1129,"end":1142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1144,"end":1157}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1174,"end":1187}}],"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 123**.\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":"4c5e335be868bd3ef021882cf3ab1f33","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1174,"end":1187}},"remediation_points":2640000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1099,"end":1112}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1114,"end":1127}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1129,"end":1142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1144,"end":1157}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1159,"end":1172}}],"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 123**.\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":"4c5e335be868bd3ef021882cf3ab1f33","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":237,"end":275}},"remediation_points":9000000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1190,"end":1228}}],"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 335**.\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":"2197196fde557f507def68848a9337f0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1190,"end":1228}},"remediation_points":9000000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":237,"end":275}}],"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 335**.\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":"2197196fde557f507def68848a9337f0","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":174,"end":183}},"remediation_points":2910000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":175,"end":184}}],"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 132**.\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":"3b9406ea8e650a35d830f1e31c93aebb","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":175,"end":184}},"remediation_points":2910000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":174,"end":183}}],"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 132**.\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":"7bb2975a130f5ca00038b95da18bed43","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":105,"end":116}},"remediation_points":2010000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":109,"end":120}}],"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 102**.\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":"b029c1b0568f337551839adae14b185d","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":109,"end":120}},"remediation_points":2010000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":105,"end":116}}],"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 102**.\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":"1e7b0b3f5123d501c1522fa88f48a744","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":579,"end":584}},"remediation_points":840000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":881,"end":886}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1012,"end":1017}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1463,"end":1468}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1565,"end":1570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1667,"end":1672}}],"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 63**.\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":"bc12cc7e7f789455104415f89b108dd1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":881,"end":886}},"remediation_points":840000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":579,"end":584}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1012,"end":1017}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1463,"end":1468}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1565,"end":1570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1667,"end":1672}}],"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 63**.\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":"bc12cc7e7f789455104415f89b108dd1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1012,"end":1017}},"remediation_points":840000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":579,"end":584}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":881,"end":886}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1463,"end":1468}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1565,"end":1570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1667,"end":1672}}],"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 63**.\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":"bc12cc7e7f789455104415f89b108dd1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1463,"end":1468}},"remediation_points":840000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":579,"end":584}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":881,"end":886}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1012,"end":1017}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1565,"end":1570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1667,"end":1672}}],"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 63**.\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":"bc12cc7e7f789455104415f89b108dd1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1565,"end":1570}},"remediation_points":840000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":579,"end":584}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":881,"end":886}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1012,"end":1017}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1463,"end":1468}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1667,"end":1672}}],"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 63**.\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":"bc12cc7e7f789455104415f89b108dd1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1667,"end":1672}},"remediation_points":840000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":579,"end":584}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":881,"end":886}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1012,"end":1017}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1463,"end":1468}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1565,"end":1570}}],"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 63**.\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":"bc12cc7e7f789455104415f89b108dd1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":416,"end":431}},"remediation_points":4320000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":432,"end":447}}],"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 179**.\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":"e5936abf636316b75d1a64c8f6f3232d","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":432,"end":447}},"remediation_points":4320000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":416,"end":431}}],"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 179**.\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":"e5936abf636316b75d1a64c8f6f3232d","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":338,"end":357}},"remediation_points":3930000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":733,"end":752}}],"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 166**.\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":"9babfb89f0dcc9ed58504ff361649f48","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":733,"end":752}},"remediation_points":3930000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":338,"end":357}}],"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 166**.\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":"9babfb89f0dcc9ed58504ff361649f48","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":133,"end":145}},"remediation_points":1410000,"other_locations":[{"path":"adapter.js","lines":{"begin":200,"end":212}}],"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 82**.\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":"bca2c63bb2e93d17170bdd341fa88c11","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":200,"end":212}},"remediation_points":1410000,"other_locations":[{"path":"adapter.js","lines":{"begin":133,"end":145}}],"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 82**.\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":"bca2c63bb2e93d17170bdd341fa88c11","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":117,"end":121}},"remediation_points":1350000,"other_locations":[{"path":"adapter.js","lines":{"begin":171,"end":175}}],"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 80**.\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":"dd8a65aaac0bdefc8d7814a2cdc83617","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapter.js","lines":{"begin":171,"end":175}},"remediation_points":1350000,"other_locations":[{"path":"adapter.js","lines":{"begin":117,"end":121}}],"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 80**.\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":"dd8a65aaac0bdefc8d7814a2cdc83617","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":92,"end":102}},"remediation_points":570000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":96,"end":106}}],"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 54**.\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":"0d743eb6d3a91a5dd336b67fd847192c","severity":"minor","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":96,"end":106}},"remediation_points":570000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":92,"end":102}}],"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 54**.\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":"733fbb32db482541360825db44cb8662","severity":"minor","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":278,"end":282}},"remediation_points":330000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":290,"end":294}}],"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 46**.\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":"8b60d954ab5805ef6cecd41cc8f6a8cc","severity":"minor","engine_name":"duplication"},{"type":"issue","check_name":"identical-code","description":"Identical blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":290,"end":294}},"remediation_points":330000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":278,"end":282}}],"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 46**.\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":"8b60d954ab5805ef6cecd41cc8f6a8cc","severity":"minor","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":186,"end":193}},"remediation_points":840000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":358,"end":365}}],"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 63**.\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":"bc12cc7e7f789455104415f89b108dd1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":358,"end":365}},"remediation_points":840000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":186,"end":193}}],"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 63**.\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":"bc12cc7e7f789455104415f89b108dd1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":186,"end":191}},"remediation_points":660000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":192,"end":197}}],"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 57**.\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":"9708dce847401f7f2fed4045ccc6fe1e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":192,"end":197}},"remediation_points":660000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":186,"end":191}}],"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 57**.\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":"9708dce847401f7f2fed4045ccc6fe1e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":119,"end":125}},"remediation_points":630000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":123,"end":129}}],"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 56**.\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":"288242a7cebc3c77c806e4bfb5507401","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":123,"end":129}},"remediation_points":630000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":119,"end":125}}],"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 56**.\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":"6eea4924872715ea88d74a7b48712f36","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":385,"end":390}},"remediation_points":600000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":392,"end":397}}],"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 55**.\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":"3970b718067c4ee0a3124c952ab6c7b6","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":392,"end":397}},"remediation_points":600000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":385,"end":390}}],"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 55**.\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":"3970b718067c4ee0a3124c952ab6c7b6","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapterBase.js","lines":{"begin":172,"end":177}},"remediation_points":360000,"other_locations":[{"path":"adapterBase.js","lines":{"begin":182,"end":187}}],"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 47**.\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":"836f40773e426a4c05734c35951c294b","severity":"minor","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"adapterBase.js","lines":{"begin":182,"end":187}},"remediation_points":360000,"other_locations":[{"path":"adapterBase.js","lines":{"begin":172,"end":177}}],"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 47**.\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":"836f40773e426a4c05734c35951c294b","severity":"minor","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"utils/testRunner.js","lines":{"begin":183,"end":189}},"remediation_points":300000,"other_locations":[{"path":"utils/testRunner.js","lines":{"begin":198,"end":204}}],"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 45**.\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":"d5d99e77b82f74c885fd703de34ea657","severity":"minor","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"utils/testRunner.js","lines":{"begin":198,"end":204}},"remediation_points":300000,"other_locations":[{"path":"utils/testRunner.js","lines":{"begin":183,"end":189}}],"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 45**.\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":"d5d99e77b82f74c885fd703de34ea657","severity":"minor","engine_name":"duplication"}]
