@itentialopensource/adapter-dna_center 0.5.4 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -0
- package/.eslintrc.js +12 -12
- package/CHANGELOG.md +24 -0
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +247 -0
- package/README.md +151 -379
- package/SUMMARY.md +9 -0
- package/TROUBLESHOOT.md +46 -0
- package/adapter.js +2212 -85
- package/adapterBase.js +848 -50
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +1 -1
- package/entities/Sites/action.json +42 -0
- package/entities/Sites/schema.json +2 -0
- package/error.json +12 -0
- package/package.json +45 -23
- package/pronghorn.json +780 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +451 -11
- package/refs?service=git-upload-pack +0 -0
- package/report/updateReport1594147160686.json +95 -0
- package/report/updateReport1614887797185.json +95 -0
- package/report/updateReport1651598418513.json +114 -0
- package/sampleProperties.json +20 -5
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +87 -11
- package/test/unit/adapterBaseTestUnit.js +947 -0
- package/test/unit/adapterTestUnit.js +794 -18
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +9 -14
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +224 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +1 -1
- package/utils/removeHooks.js +20 -0
- package/utils/tbScript.js +169 -0
- package/utils/tbUtils.js +464 -0
- package/utils/troubleshootingAdapter.js +190 -0
- package/gl-code-quality-report.json +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"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":175,"end":175}},"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 6195 lines of code (exceeds 250 allowed). Consider refactoring.","fingerprint":"b2397bb59141f32af47509a9ab10dce9","location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1,"end":6500}},"other_locations":[],"remediation_points":86808000,"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":370,"end":379}},"other_locations":[],"remediation_points":450000,"severity":"major","type":"issue","engine_name":"structure","fingerprint":"90f494b04cfff6ffb3b26ac3967df59f"},{"categories":["Complexity"],"check_name":"nested_control_flow","content":{"body":""},"description":"Avoid deeply nested control flow statements.","location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":391,"end":402}},"other_locations":[],"remediation_points":450000,"severity":"major","type":"issue","engine_name":"structure","fingerprint":"6539bfa604a1a60ab6b8eaa0da343c6a"},{"categories":["Complexity"],"check_name":"nested_control_flow","content":{"body":""},"description":"Avoid deeply nested control flow statements.","location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":403,"end":414}},"other_locations":[],"remediation_points":450000,"severity":"major","type":"issue","engine_name":"structure","fingerprint":"8b7203f40a273ddd92416673591581c4"},{"categories":["Complexity"],"check_name":"argument_count","content":{"body":""},"description":"Function `runErrorAsserts` has 5 arguments (exceeds 4 allowed). Consider refactoring.","fingerprint":"77f81584f102b07042c38c0ce57adeb4","location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":184,"end":184}},"other_locations":[],"remediation_points":375000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"file_lines","content":{"body":""},"description":"File `adapterTestIntegration.js` has 2896 lines of code (exceeds 250 allowed). Consider refactoring.","fingerprint":"d9d2159cb07fd6f893338f5f58079ab3","location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1,"end":5367}},"other_locations":[],"remediation_points":39302400,"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 `saveMockData` has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.","fingerprint":"b5c13dcfb91726cba324bd37f332f8a4","location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":206,"end":298}},"other_locations":[],"remediation_points":950000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `saveMockData` has 56 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"861ce9f3943713c2eafb001e588fa44a","location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":206,"end":298}},"other_locations":[],"remediation_points":1344000,"severity":"major","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"file_lines","content":{"body":""},"description":"File `adapterBase.js` has 256 lines of code (exceeds 250 allowed). Consider refactoring.","fingerprint":"bca8c6597d0017e6fa30475be760d821","location":{"path":"adapterBase.js","lines":{"begin":1,"end":502}},"other_locations":[],"remediation_points":1286400,"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":400,"end":421}},"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":432,"end":478}},"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":432,"end":478}},"other_locations":[],"remediation_points":840000,"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 `createBundle` has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.","fingerprint":"4b87ca4c88a7ecbdbbb08bf5112475f0","location":{"path":"utils/artifactize.js","lines":{"begin":7,"end":134}},"other_locations":[],"remediation_points":350000,"severity":"minor","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `createBundle` has 96 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"72b872bcc26c772c56329ae356a8b28d","location":{"path":"utils/artifactize.js","lines":{"begin":7,"end":134}},"other_locations":[],"remediation_points":2304000,"severity":"major","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `replaceTestVars` has 54 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"8d8c6f1b4fa974629cf80c425e841e1d","location":{"path":"utils/testRunner.js","lines":{"begin":41,"end":118}},"other_locations":[],"remediation_points":1296000,"severity":"major","type":"issue","engine_name":"structure"},{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `runTest` has 29 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"8c21202bfdbe9e2506f2dd1458400d09","location":{"path":"utils/testRunner.js","lines":{"begin":123,"end":156}},"other_locations":[],"remediation_points":696000,"severity":"minor","type":"issue","engine_name":"structure"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 55 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6344,"end":6388}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":801,"end":845}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":859,"end":903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":905,"end":949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":951,"end":995}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1142,"end":1186}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1360,"end":1404}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1406,"end":1450}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1522,"end":1566}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1638,"end":1682}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1696,"end":1740}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1742,"end":1786}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1788,"end":1832}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1834,"end":1878}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1880,"end":1924}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1926,"end":1970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2001,"end":2045}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2047,"end":2091}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2105,"end":2149}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2209,"end":2253}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2255,"end":2299}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2313,"end":2357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2359,"end":2403}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2405,"end":2449}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2572,"end":2616}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2618,"end":2662}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2664,"end":2708}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2710,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2906,"end":2950}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2993,"end":3037}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3039,"end":3083}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3206,"end":3250}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3252,"end":3296}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3298,"end":3342}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3465,"end":3509}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3511,"end":3555}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3610,"end":3654}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3668,"end":3712}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3714,"end":3758}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3772,"end":3816}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3859,"end":3903}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3905,"end":3949}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3963,"end":4007}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4050,"end":4094}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4229,"end":4273}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4275,"end":4319}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4594,"end":4638}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4920,"end":4964}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4966,"end":5010}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5140,"end":5184}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5701,"end":5745}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5882,"end":5926}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6078,"end":6122}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6124,"end":6168}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6269,"end":6313}}],"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 400**.\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":"31420cf9a40b2b76a6045b3c18323fe4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 44 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6315,"end":6342}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1026,"end":1053}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1055,"end":1082}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1084,"end":1111}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1113,"end":1140}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1568,"end":1595}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1597,"end":1624}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2151,"end":2178}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2180,"end":2207}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2514,"end":2541}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2543,"end":2570}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3148,"end":3175}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3177,"end":3204}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3407,"end":3434}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3436,"end":3463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3581,"end":3608}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4188,"end":4215}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4466,"end":4493}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4565,"end":4592}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4669,"end":4696}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4698,"end":4725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4727,"end":4754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4756,"end":4783}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4797,"end":4824}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4850,"end":4877}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4891,"end":4918}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5024,"end":5051}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5053,"end":5080}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5082,"end":5109}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5273,"end":5300}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5302,"end":5329}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5486,"end":5513}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5527,"end":5554}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5631,"end":5658}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5660,"end":5687}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5783,"end":5810}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5812,"end":5839}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5841,"end":5868}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5928,"end":5955}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5957,"end":5984}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5986,"end":6013}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6170,"end":6197}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6211,"end":6238}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6240,"end":6267}}],"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 251**.\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":"cf0d4878c518953b0cba51946d40e3c4","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 8 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1188,"end":1249}},"remediation_points":15480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1251,"end":1312}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2451,"end":2512}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3146}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3344,"end":3405}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4350,"end":4411}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5186,"end":5247}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5556,"end":5617}}],"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 551**.\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":"849a18f4c194a1d46760fb9f1a79c38e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 8 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1251,"end":1312}},"remediation_points":15480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1188,"end":1249}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2451,"end":2512}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3146}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3344,"end":3405}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4350,"end":4411}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5186,"end":5247}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5556,"end":5617}}],"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 551**.\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":"849a18f4c194a1d46760fb9f1a79c38e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 8 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2451,"end":2512}},"remediation_points":15480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1188,"end":1249}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1251,"end":1312}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3146}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3344,"end":3405}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4350,"end":4411}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5186,"end":5247}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5556,"end":5617}}],"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 551**.\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":"849a18f4c194a1d46760fb9f1a79c38e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 8 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3146}},"remediation_points":15480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1188,"end":1249}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1251,"end":1312}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2451,"end":2512}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3344,"end":3405}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4350,"end":4411}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5186,"end":5247}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5556,"end":5617}}],"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 551**.\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":"849a18f4c194a1d46760fb9f1a79c38e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 8 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3344,"end":3405}},"remediation_points":15480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1188,"end":1249}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1251,"end":1312}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2451,"end":2512}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3146}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4350,"end":4411}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5186,"end":5247}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5556,"end":5617}}],"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 551**.\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":"849a18f4c194a1d46760fb9f1a79c38e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 8 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4350,"end":4411}},"remediation_points":15480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1188,"end":1249}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1251,"end":1312}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2451,"end":2512}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3146}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3344,"end":3405}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5186,"end":5247}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5556,"end":5617}}],"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 551**.\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":"849a18f4c194a1d46760fb9f1a79c38e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 8 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5186,"end":5247}},"remediation_points":15480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1188,"end":1249}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1251,"end":1312}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2451,"end":2512}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3146}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3344,"end":3405}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4350,"end":4411}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5556,"end":5617}}],"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 551**.\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":"849a18f4c194a1d46760fb9f1a79c38e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 8 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5556,"end":5617}},"remediation_points":15480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1188,"end":1249}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1251,"end":1312}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2451,"end":2512}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3146}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3344,"end":3405}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4350,"end":4411}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5186,"end":5247}}],"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 551**.\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":"849a18f4c194a1d46760fb9f1a79c38e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 37 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6199,"end":6209}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":789,"end":799}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":847,"end":857}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1452,"end":1462}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1510,"end":1520}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1626,"end":1636}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1684,"end":1694}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2093,"end":2103}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2301,"end":2311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2981,"end":2991}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3557,"end":3567}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3569,"end":3579}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3656,"end":3666}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3760,"end":3770}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3818,"end":3828}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3951,"end":3961}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4009,"end":4019}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4217,"end":4227}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4413,"end":4423}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4425,"end":4435}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4541,"end":4551}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4553,"end":4563}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4785,"end":4795}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4826,"end":4836}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4838,"end":4848}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4879,"end":4889}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5012,"end":5022}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5249,"end":5259}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5261,"end":5271}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5474,"end":5484}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5515,"end":5525}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5619,"end":5629}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5689,"end":5699}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5747,"end":5757}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5759,"end":5769}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5771,"end":5781}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5870,"end":5880}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 13 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5339,"end":5364}},"remediation_points":5280000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3705,"end":3730}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3871,"end":3896}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3927,"end":3952}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4090,"end":4115}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4117,"end":4142}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4175,"end":4200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4313,"end":4338}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4396,"end":4421}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4704,"end":4729}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4732,"end":4757}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4851,"end":4876}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5284,"end":5309}}],"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 211**.\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":"719047773f8e78a97b65bb268c12ac52","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":38,"end":129}},"remediation_points":11610000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":40,"end":131}}],"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 422**.\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":"407332b4535d2d2bfd26971d1258bc74","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":40,"end":131}},"remediation_points":11610000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":38,"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 422**.\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":"c46e3afec38d37192e6e07cd1eb65c08","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":997,"end":1024}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2785,"end":2812}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2952,"end":2979}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4321,"end":4348}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4437,"end":4464}}],"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 252**.\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":"1469ae9378f7f46a74c5fe227581c71f","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":2785,"end":2812}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":997,"end":1024}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2952,"end":2979}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4321,"end":4348}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4437,"end":4464}}],"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 252**.\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":"1469ae9378f7f46a74c5fe227581c71f","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":2952,"end":2979}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":997,"end":1024}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2785,"end":2812}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4321,"end":4348}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4437,"end":4464}}],"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 252**.\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":"1469ae9378f7f46a74c5fe227581c71f","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":4321,"end":4348}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":997,"end":1024}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2785,"end":2812}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2952,"end":2979}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4437,"end":4464}}],"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 252**.\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":"1469ae9378f7f46a74c5fe227581c71f","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":4437,"end":4464}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":997,"end":1024}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2785,"end":2812}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2952,"end":2979}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4321,"end":4348}}],"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 252**.\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":"1469ae9378f7f46a74c5fe227581c71f","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":2843,"end":2904}},"remediation_points":15570000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6015,"end":6076}}],"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 554**.\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":"f8c196bada320e986c73acfc10869a49","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":6015,"end":6076}},"remediation_points":15570000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2843,"end":2904}}],"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 554**.\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":"f8c196bada320e986c73acfc10869a49","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":3759,"end":3784}},"remediation_points":5430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3786,"end":3811}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3813,"end":3838}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3900,"end":3925}}],"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 216**.\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":"83685501a563a6936d4e98a3762fc17e","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":3786,"end":3811}},"remediation_points":5430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3759,"end":3784}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3813,"end":3838}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3900,"end":3925}}],"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 216**.\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":"83685501a563a6936d4e98a3762fc17e","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":3813,"end":3838}},"remediation_points":5430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3759,"end":3784}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3786,"end":3811}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3900,"end":3925}}],"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 216**.\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":"83685501a563a6936d4e98a3762fc17e","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":3900,"end":3925}},"remediation_points":5430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3759,"end":3784}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3786,"end":3811}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3813,"end":3838}}],"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 216**.\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":"83685501a563a6936d4e98a3762fc17e","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":2315,"end":2349}},"remediation_points":11250000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5248,"end":5282}}],"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 410**.\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":"61487720d3ec821fda44c7d44d08eb83","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":5248,"end":5282}},"remediation_points":11250000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2315,"end":2349}}],"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 410**.\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":"61487720d3ec821fda44c7d44d08eb83","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":4096,"end":4140}},"remediation_points":11130000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4142,"end":4186}}],"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 406**.\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":"2d4f9140a9160827c28161170f6cff54","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":4142,"end":4186}},"remediation_points":11130000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4096,"end":4140}}],"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 406**.\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":"2d4f9140a9160827c28161170f6cff54","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":4286,"end":4305}},"remediation_points":4500000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4539,"end":4558}}],"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 185**.\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":"f59db886acc030e5ffc834117fc231fa","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":4539,"end":4558}},"remediation_points":4500000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4286,"end":4305}}],"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 185**.\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":"f59db886acc030e5ffc834117fc231fa","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":328,"end":342}},"remediation_points":4140000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":227,"end":241}}],"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 173**.\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":"0048cbf609e78069ba0e4d1b98bf014b","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":227,"end":241}},"remediation_points":4140000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":328,"end":342}}],"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 173**.\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":"07e8259a3d95d342c4e7f73a9defd195","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":184,"end":195}},"remediation_points":3990000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":175,"end":186}}],"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 168**.\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":"bb4a77e62d7ec279b2c1daf6b26d6a65","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":186}},"remediation_points":3990000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":184,"end":195}}],"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 168**.\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":"c3514c9893bc8b8bb5cf9e6864cd86c1","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3954,"end":3979}},"remediation_points":5430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4063,"end":4088}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4423,"end":4448}}],"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 216**.\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":"83685501a563a6936d4e98a3762fc17e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4063,"end":4088}},"remediation_points":5430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3954,"end":3979}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4423,"end":4448}}],"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 216**.\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":"83685501a563a6936d4e98a3762fc17e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4423,"end":4448}},"remediation_points":5430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3954,"end":3979}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4063,"end":4088}}],"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 216**.\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":"83685501a563a6936d4e98a3762fc17e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":424,"end":449}},"remediation_points":5310000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":877,"end":902}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4036,"end":4061}}],"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 212**.\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":"5218f8f9e344709d694a8ba5a333767e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":877,"end":902}},"remediation_points":5310000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":424,"end":449}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4036,"end":4061}}],"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 212**.\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":"5218f8f9e344709d694a8ba5a333767e","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4036,"end":4061}},"remediation_points":5310000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":424,"end":449}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":877,"end":902}}],"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 212**.\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":"5218f8f9e344709d694a8ba5a333767e","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":1021,"end":1037}},"remediation_points":2850000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1048,"end":1064}}],"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 130**.\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":"c79024e7b6252ebb90af2fb7ed407d7c","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":1048,"end":1064}},"remediation_points":2850000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1021,"end":1037}}],"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 130**.\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":"c79024e7b6252ebb90af2fb7ed407d7c","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1536,"end":1555}},"remediation_points":4110000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4148,"end":4167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4789,"end":4808}}],"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 172**.\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":"50177da8b65d6e7d083b5d1580cf9a15","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4148,"end":4167}},"remediation_points":4110000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1536,"end":1555}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4789,"end":4808}}],"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 172**.\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":"50177da8b65d6e7d083b5d1580cf9a15","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4789,"end":4808}},"remediation_points":4110000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1536,"end":1555}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4148,"end":4167}}],"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 172**.\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":"50177da8b65d6e7d083b5d1580cf9a15","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":4021,"end":4048}},"remediation_points":6600000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4640,"end":4667}}],"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 255**.\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":"aeb244ff69510820b0d068c4e1b18f4a","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":4640,"end":4667}},"remediation_points":6600000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4021,"end":4048}}],"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 255**.\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":"aeb244ff69510820b0d068c4e1b18f4a","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":4478,"end":4505}},"remediation_points":6120000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4621,"end":4648}}],"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 239**.\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":"132ca02f31a5bb878c3d3a79223bc1a6","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":4621,"end":4648}},"remediation_points":6120000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4478,"end":4505}}],"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 239**.\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":"132ca02f31a5bb878c3d3a79223bc1a6","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":5025,"end":5051}},"remediation_points":5820000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5311,"end":5337}}],"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 229**.\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":"c61bdb4e9e25ea2016b291a6cf9440cb","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":5311,"end":5337}},"remediation_points":5820000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5025,"end":5051}}],"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 229**.\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":"c61bdb4e9e25ea2016b291a6cf9440cb","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":646,"end":666}},"remediation_points":5610000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":667,"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 222**.\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":"864c67216c8f8b61a576ee2c258f28c5","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":667,"end":687}},"remediation_points":5610000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":646,"end":666}}],"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 222**.\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":"864c67216c8f8b61a576ee2c258f28c5","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":1563,"end":1588}},"remediation_points":5190000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3732,"end":3757}}],"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 208**.\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":"434d1e4c9381117eac29e42c34d2a359","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":3732,"end":3757}},"remediation_points":5190000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1563,"end":1588}}],"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 208**.\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":"434d1e4c9381117eac29e42c34d2a359","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":3408,"end":3433}},"remediation_points":5190000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3570,"end":3595}}],"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 208**.\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":"434d1e4c9381117eac29e42c34d2a359","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":3570,"end":3595}},"remediation_points":5190000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3408,"end":3433}}],"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 208**.\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":"434d1e4c9381117eac29e42c34d2a359","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":3597,"end":3622}},"remediation_points":5190000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3678,"end":3703}}],"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 208**.\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":"434d1e4c9381117eac29e42c34d2a359","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":3678,"end":3703}},"remediation_points":5190000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3597,"end":3622}}],"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 208**.\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":"434d1e4c9381117eac29e42c34d2a359","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":148,"end":159}},"remediation_points":2010000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":150,"end":161}}],"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":150,"end":161}},"remediation_points":2010000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":148,"end":159}}],"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 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4759,"end":4783}},"remediation_points":4650000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4878,"end":4902}}],"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 190**.\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":"78375fa9f49fbfb9f9ccd1a5cbd57a61","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":4878,"end":4902}},"remediation_points":4650000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4759,"end":4783}}],"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 190**.\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":"78375fa9f49fbfb9f9ccd1a5cbd57a61","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":243,"end":255}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":492,"end":504}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":506,"end":518}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":492,"end":504}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":243,"end":255}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":506,"end":518}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":506,"end":518}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":243,"end":255}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":492,"end":504}}],"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 104**.\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":"d51e77c6ea0bab2d5f4c8a1101ee3f53","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":4371,"end":4388}},"remediation_points":3540000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4511,"end":4528}}],"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 153**.\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":"35ec002c5cd7b621aa5cabaf196ef170","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":4511,"end":4528}},"remediation_points":3540000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4371,"end":4388}}],"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 153**.\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":"35ec002c5cd7b621aa5cabaf196ef170","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":5392,"end":5408}},"remediation_points":3480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6434,"end":6450}}],"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 151**.\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":"9ca60453f40b4a8a336bd5696a4838ef","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":6434,"end":6450}},"remediation_points":3480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5392,"end":5408}}],"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 151**.\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":"9ca60453f40b4a8a336bd5696a4838ef","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":5455,"end":5471}},"remediation_points":3450000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":6480,"end":6496}}],"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 150**.\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":"0abda89075fb70902894afaef465c791","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":6480,"end":6496}},"remediation_points":3450000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":5455,"end":5471}}],"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 150**.\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":"0abda89075fb70902894afaef465c791","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":580,"end":586}},"remediation_points":1050000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2850,"end":2859}}],"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 70**.\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":"c57665062fa79fdba8b04d15331eefce","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":2850,"end":2859}},"remediation_points":1050000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":580,"end":586}}],"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 70**.\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":"c57665062fa79fdba8b04d15331eefce","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":345,"end":361}},"remediation_points":3120000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":362,"end":378}}],"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 139**.\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":"8212ad1f3d660634152ac36636aad82b","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":362,"end":378}},"remediation_points":3120000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":345,"end":361}}],"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 139**.\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":"8212ad1f3d660634152ac36636aad82b","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":312,"end":326}},"remediation_points":2640000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":211,"end":225}}],"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/unit/adapterTestUnit.js","lines":{"begin":211,"end":225}},"remediation_points":2640000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":312,"end":326}}],"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":"f8f81ee6dba14b1bd45429d5419d8131","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":393,"end":397}},"remediation_points":750000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":405,"end":409}}],"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 60**.\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":"8e181359fba3343cf92f176c804d3d69","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":405,"end":409}},"remediation_points":750000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":393,"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 60**.\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":"8e181359fba3343cf92f176c804d3d69","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":135,"end":145}},"remediation_points":570000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":137,"end":147}}],"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":137,"end":147}},"remediation_points":570000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":135,"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 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":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2921,"end":2936}},"remediation_points":2010000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3019,"end":3034}}],"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":"cf884a9848984b33679cc104cd1d66db","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":3019,"end":3034}},"remediation_points":2010000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2921,"end":2936}}],"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":"cf884a9848984b33679cc104cd1d66db","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":1785,"end":1810}},"remediation_points":420000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1866,"end":1891}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3267,"end":3292}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3954,"end":3979}}],"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 49**.\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":"1fcbaa1908b8242f00314930ebe5cc29","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":1866,"end":1891}},"remediation_points":420000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1785,"end":1810}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3267,"end":3292}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3954,"end":3979}}],"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 49**.\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":"1fcbaa1908b8242f00314930ebe5cc29","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":3267,"end":3292}},"remediation_points":420000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1785,"end":1810}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1866,"end":1891}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3954,"end":3979}}],"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 49**.\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":"1fcbaa1908b8242f00314930ebe5cc29","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":581,"end":591}},"remediation_points":1830000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":593,"end":603}}],"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 96**.\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":"1f1252b8c43ea1999aed0266b664329c","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":593,"end":603}},"remediation_points":1830000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":581,"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 96**.\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":"1f1252b8c43ea1999aed0266b664329c","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":2119,"end":2123}},"remediation_points":360000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":5118,"end":5122}}],"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":"a8db26ead890729a880bff050153160f","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/integration/adapterTestIntegration.js","lines":{"begin":5118,"end":5122}},"remediation_points":360000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2119,"end":2123}}],"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":"a8db26ead890729a880bff050153160f","severity":"minor","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1947,"end":1947}},"remediation_points":630000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3348,"end":3348}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4035,"end":4035}}],"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 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3348,"end":3348}},"remediation_points":630000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1947,"end":1947}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4035,"end":4035}}],"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 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4035,"end":4035}},"remediation_points":630000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1947,"end":1947}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3348,"end":3348}}],"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 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"utils/testRunner.js","lines":{"begin":204,"end":206}},"remediation_points":390000,"other_locations":[{"path":"utils/testRunner.js","lines":{"begin":207,"end":209}},{"path":"utils/testRunner.js","lines":{"begin":216,"end":218}}],"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 48**.\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":"13dfbb7f3dbfa28ed2c51d9ea6819363","severity":"minor","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"utils/testRunner.js","lines":{"begin":207,"end":209}},"remediation_points":390000,"other_locations":[{"path":"utils/testRunner.js","lines":{"begin":204,"end":206}},{"path":"utils/testRunner.js","lines":{"begin":216,"end":218}}],"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 48**.\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":"13dfbb7f3dbfa28ed2c51d9ea6819363","severity":"minor","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"utils/testRunner.js","lines":{"begin":216,"end":218}},"remediation_points":390000,"other_locations":[{"path":"utils/testRunner.js","lines":{"begin":204,"end":206}},{"path":"utils/testRunner.js","lines":{"begin":207,"end":209}}],"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 48**.\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":"13dfbb7f3dbfa28ed2c51d9ea6819363","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/artifactize.js","lines":{"begin":31,"end":33}},"remediation_points":1020000,"other_locations":[{"path":"utils/artifactize.js","lines":{"begin":36,"end":38}}],"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 69**.\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":"20102ffc15f005287958e9466fe4f5fc","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":"utils/artifactize.js","lines":{"begin":36,"end":38}},"remediation_points":1020000,"other_locations":[{"path":"utils/artifactize.js","lines":{"begin":31,"end":33}}],"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 69**.\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":"20102ffc15f005287958e9466fe4f5fc","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":162,"end":168}},"remediation_points":630000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":164,"end":170}}],"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":164,"end":170}},"remediation_points":630000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":162,"end":168}}],"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":"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":219,"end":225}},"remediation_points":300000,"other_locations":[{"path":"utils/testRunner.js","lines":{"begin":234,"end":240}}],"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":234,"end":240}},"remediation_points":300000,"other_locations":[{"path":"utils/testRunner.js","lines":{"begin":219,"end":225}}],"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"}]
|