@itentialopensource/adapter-six_connect 0.5.1 → 0.6.0

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.
Files changed (52) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +12 -12
  3. package/AUTH.md +39 -0
  4. package/BROKER.md +199 -0
  5. package/CALLS.md +169 -0
  6. package/CHANGELOG.md +56 -14
  7. package/CODE_OF_CONDUCT.md +12 -17
  8. package/CONTRIBUTING.md +88 -74
  9. package/ENHANCE.md +69 -0
  10. package/PROPERTIES.md +641 -0
  11. package/README.md +244 -392
  12. package/SUMMARY.md +9 -0
  13. package/SYSTEMINFO.md +11 -0
  14. package/TROUBLESHOOT.md +47 -0
  15. package/adapter.js +2149 -325
  16. package/adapterBase.js +1331 -50
  17. package/entities/.generic/action.json +214 -0
  18. package/entities/.generic/schema.json +28 -0
  19. package/entities/.system/action.json +1 -1
  20. package/error.json +12 -0
  21. package/package.json +47 -23
  22. package/pronghorn.json +649 -0
  23. package/propertiesDecorators.json +14 -0
  24. package/propertiesSchema.json +505 -11
  25. package/refs?service=git-upload-pack +0 -0
  26. package/report/adapterInfo.json +10 -0
  27. package/report/updateReport1594390270554.json +95 -0
  28. package/report/updateReport1615818238025.json +95 -0
  29. package/report/updateReport1652989961710.json +120 -0
  30. package/sampleProperties.json +111 -7
  31. package/test/integration/adapterTestBasicGet.js +85 -0
  32. package/test/integration/adapterTestConnectivity.js +93 -0
  33. package/test/integration/adapterTestIntegration.js +33 -96
  34. package/test/unit/adapterBaseTestUnit.js +949 -0
  35. package/test/unit/adapterTestUnit.js +643 -104
  36. package/utils/adapterInfo.js +206 -0
  37. package/utils/addAuth.js +94 -0
  38. package/utils/artifactize.js +9 -14
  39. package/utils/basicGet.js +50 -0
  40. package/utils/checkMigrate.js +63 -0
  41. package/utils/entitiesToDB.js +179 -0
  42. package/utils/findPath.js +74 -0
  43. package/utils/modify.js +154 -0
  44. package/utils/packModificationScript.js +1 -1
  45. package/utils/patches2bundledDeps.js +90 -0
  46. package/utils/pre-commit.sh +4 -1
  47. package/utils/removeHooks.js +20 -0
  48. package/utils/tbScript.js +184 -0
  49. package/utils/tbUtils.js +469 -0
  50. package/utils/testRunner.js +16 -16
  51. package/utils/troubleshootingAdapter.js +190 -0
  52. 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 4519 lines of code (exceeds 250 allowed). Consider refactoring.","fingerprint":"b2397bb59141f32af47509a9ab10dce9","location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1,"end":4786}},"other_locations":[],"remediation_points":62673600,"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 4356 lines of code (exceeds 250 allowed). Consider refactoring.","fingerprint":"d9d2159cb07fd6f893338f5f58079ab3","location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1,"end":4723}},"other_locations":[],"remediation_points":60326400,"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 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"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 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 54 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4417,"end":4448}},"remediation_points":8460000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":674,"end":705}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":707,"end":738}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":740,"end":771}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":773,"end":804}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":905,"end":936}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1004,"end":1035}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1037,"end":1068}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1103,"end":1134}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1136,"end":1167}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1638,"end":1669}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1711,"end":1742}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1744,"end":1775}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1777,"end":1808}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1810,"end":1841}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1843,"end":1874}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1876,"end":1907}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1909,"end":1940}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1975,"end":2006}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2008,"end":2039}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2041,"end":2072}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2074,"end":2105}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2140,"end":2171}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2206,"end":2237}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2272,"end":2303}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2305,"end":2336}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2338,"end":2369}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2536,"end":2567}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2569,"end":2600}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2602,"end":2633}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2701,"end":2732}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2866,"end":2897}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2899,"end":2930}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2932,"end":2963}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3031,"end":3062}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3097,"end":3128}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3130,"end":3161}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3295,"end":3326}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3361,"end":3392}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3394,"end":3425}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3493,"end":3524}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3526,"end":3557}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3625,"end":3656}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3658,"end":3689}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3691,"end":3722}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3790,"end":3821}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3823,"end":3854}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3955,"end":3986}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3988,"end":4019}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4021,"end":4052}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4087,"end":4118}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4120,"end":4151}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4153,"end":4184}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4252,"end":4283}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 317**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"a964abca237fc3cb309345c17eabbfbc","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 41 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4693,"end":4720}},"remediation_points":6510000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":856,"end":883}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":885,"end":912}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":960,"end":987}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1059,"end":1086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1629,"end":1656}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1687,"end":1714}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1716,"end":1743}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1745,"end":1772}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1774,"end":1801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1970,"end":1997}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1999,"end":2026}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2028,"end":2055}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2132,"end":2159}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2190,"end":2217}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2248,"end":2275}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2277,"end":2304}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2306,"end":2333}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2599,"end":2626}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2674,"end":2701}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2727,"end":2754}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2889,"end":2916}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2918,"end":2945}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2947,"end":2974}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3085,"end":3112}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3143,"end":3170}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3172,"end":3199}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3300,"end":3327}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3358,"end":3385}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3387,"end":3414}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3474,"end":3501}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3503,"end":3530}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3607,"end":3634}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3636,"end":3663}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3769,"end":3796}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3914,"end":3941}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3943,"end":3970}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3972,"end":3999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4030,"end":4057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4059,"end":4086}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4192,"end":4219}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 31 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4054,"end":4085}},"remediation_points":8430000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":443,"end":474}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":542,"end":573}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":641,"end":672}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":806,"end":837}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":839,"end":870}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":872,"end":903}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":938,"end":969}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":971,"end":1002}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1070,"end":1101}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1202,"end":1233}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1235,"end":1266}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1268,"end":1299}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1301,"end":1332}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1334,"end":1365}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1367,"end":1398}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1433,"end":1464}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1466,"end":1497}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1572,"end":1603}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1942,"end":1973}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2107,"end":2138}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2668,"end":2699}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2767,"end":2798}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3064,"end":3095}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3163,"end":3194}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3262,"end":3293}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3427,"end":3458}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3460,"end":3491}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3592,"end":3623}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3724,"end":3755}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3922,"end":3953}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 316**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"89fcc8d2ea72880549339fa589bc8bd2","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 14 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4405,"end":4449}},"remediation_points":10950000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":914,"end":958}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1146,"end":1190}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1192,"end":1236}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1267,"end":1311}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1313,"end":1357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1803,"end":1847}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1849,"end":1893}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1895,"end":1939}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2057,"end":2101}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2628,"end":2672}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3665,"end":3709}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3798,"end":3842}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4088,"end":4132}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 20 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4001,"end":4028}},"remediation_points":6480000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":827,"end":854}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1001,"end":1028}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1030,"end":1057}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1088,"end":1115}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1117,"end":1144}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1238,"end":1265}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1395,"end":1422}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1424,"end":1451}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1489,"end":1516}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1518,"end":1545}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1658,"end":1685}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1941,"end":1968}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2103,"end":2130}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3114,"end":3141}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3201,"end":3228}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3416,"end":3443}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3445,"end":3472}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3578,"end":3605}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3711,"end":3738}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 9 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2404,"end":2435}},"remediation_points":8490000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2437,"end":2468}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2470,"end":2501}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3196,"end":3227}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3559,"end":3590}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4285,"end":4316}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4351,"end":4382}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4384,"end":4415}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4549,"end":4580}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 318**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1ee618ebccaeeb6543cb4a16ab883385","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 9 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2437,"end":2468}},"remediation_points":8490000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2404,"end":2435}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2470,"end":2501}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3196,"end":3227}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3559,"end":3590}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4285,"end":4316}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4351,"end":4382}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4384,"end":4415}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4549,"end":4580}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 318**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1ee618ebccaeeb6543cb4a16ab883385","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 9 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2470,"end":2501}},"remediation_points":8490000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2404,"end":2435}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2437,"end":2468}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3196,"end":3227}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3559,"end":3590}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4285,"end":4316}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4351,"end":4382}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4384,"end":4415}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4549,"end":4580}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 318**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1ee618ebccaeeb6543cb4a16ab883385","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 9 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3196,"end":3227}},"remediation_points":8490000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2404,"end":2435}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2437,"end":2468}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2470,"end":2501}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3559,"end":3590}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4285,"end":4316}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4351,"end":4382}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4384,"end":4415}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4549,"end":4580}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 318**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1ee618ebccaeeb6543cb4a16ab883385","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 9 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3559,"end":3590}},"remediation_points":8490000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2404,"end":2435}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2437,"end":2468}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2470,"end":2501}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3196,"end":3227}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4285,"end":4316}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4351,"end":4382}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4384,"end":4415}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4549,"end":4580}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 318**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1ee618ebccaeeb6543cb4a16ab883385","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 9 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4285,"end":4316}},"remediation_points":8490000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2404,"end":2435}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2437,"end":2468}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2470,"end":2501}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3196,"end":3227}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3559,"end":3590}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4351,"end":4382}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4384,"end":4415}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4549,"end":4580}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 318**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1ee618ebccaeeb6543cb4a16ab883385","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 9 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4351,"end":4382}},"remediation_points":8490000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2404,"end":2435}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2437,"end":2468}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2470,"end":2501}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3196,"end":3227}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3559,"end":3590}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4285,"end":4316}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4384,"end":4415}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4549,"end":4580}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 318**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1ee618ebccaeeb6543cb4a16ab883385","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 9 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4384,"end":4415}},"remediation_points":8490000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2404,"end":2435}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2437,"end":2468}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2470,"end":2501}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3196,"end":3227}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3559,"end":3590}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4285,"end":4316}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4351,"end":4382}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4549,"end":4580}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 318**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1ee618ebccaeeb6543cb4a16ab883385","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 9 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4549,"end":4580}},"remediation_points":8490000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2404,"end":2435}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2437,"end":2468}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2470,"end":2501}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3196,"end":3227}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3559,"end":3590}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4285,"end":4316}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4351,"end":4382}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4384,"end":4415}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 318**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1ee618ebccaeeb6543cb4a16ab883385","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 24 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3902,"end":3912}},"remediation_points":2070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":755,"end":765}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":767,"end":777}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":779,"end":789}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":791,"end":801}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":803,"end":813}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":815,"end":825}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":989,"end":999}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1359,"end":1369}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1371,"end":1381}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1383,"end":1393}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1453,"end":1463}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1465,"end":1475}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1477,"end":1487}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1547,"end":1557}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1559,"end":1569}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":1571,"end":1581}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2703,"end":2713}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2715,"end":2725}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2756,"end":2766}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2768,"end":2778}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3276,"end":3286}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3288,"end":3298}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3890,"end":3900}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2381,"end":2425}},"remediation_points":11010000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2427,"end":2471}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3230,"end":3274}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3532,"end":3576}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4313,"end":4357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4359,"end":4403}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 402**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"10e1aafcbf6a33a2e10678ab8e6cd99c","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2427,"end":2471}},"remediation_points":11010000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2381,"end":2425}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3230,"end":3274}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3532,"end":3576}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4313,"end":4357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4359,"end":4403}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 402**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"10e1aafcbf6a33a2e10678ab8e6cd99c","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3230,"end":3274}},"remediation_points":11010000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2381,"end":2425}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2427,"end":2471}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3532,"end":3576}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4313,"end":4357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4359,"end":4403}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 402**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"10e1aafcbf6a33a2e10678ab8e6cd99c","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3532,"end":3576}},"remediation_points":11010000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2381,"end":2425}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2427,"end":2471}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3230,"end":3274}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4313,"end":4357}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4359,"end":4403}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 402**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"10e1aafcbf6a33a2e10678ab8e6cd99c","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4313,"end":4357}},"remediation_points":11010000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2381,"end":2425}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2427,"end":2471}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3230,"end":3274}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3532,"end":3576}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4359,"end":4403}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 402**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"10e1aafcbf6a33a2e10678ab8e6cd99c","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4359,"end":4403}},"remediation_points":11010000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2381,"end":2425}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2427,"end":2471}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3230,"end":3274}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3532,"end":3576}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4313,"end":4357}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 402**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"10e1aafcbf6a33a2e10678ab8e6cd99c","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":476,"end":507}},"remediation_points":8400000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":509,"end":540}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":575,"end":606}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":608,"end":639}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1169,"end":1200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1400,"end":1431}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 315**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"f94b632c05774b09670e4832242b3e5b","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":509,"end":540}},"remediation_points":8400000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":476,"end":507}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":575,"end":606}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":608,"end":639}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1169,"end":1200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1400,"end":1431}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 315**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"f94b632c05774b09670e4832242b3e5b","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":575,"end":606}},"remediation_points":8400000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":476,"end":507}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":509,"end":540}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":608,"end":639}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1169,"end":1200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1400,"end":1431}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 315**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"f94b632c05774b09670e4832242b3e5b","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":608,"end":639}},"remediation_points":8400000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":476,"end":507}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":509,"end":540}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":575,"end":606}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1169,"end":1200}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1400,"end":1431}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 315**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"f94b632c05774b09670e4832242b3e5b","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1169,"end":1200}},"remediation_points":8400000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":476,"end":507}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":509,"end":540}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":575,"end":606}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":608,"end":639}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1400,"end":1431}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 315**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"f94b632c05774b09670e4832242b3e5b","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 6 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1400,"end":1431}},"remediation_points":8400000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":476,"end":507}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":509,"end":540}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":575,"end":606}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":608,"end":639}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1169,"end":1200}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 315**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"f94b632c05774b09670e4832242b3e5b","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":"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":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2635,"end":2666}},"remediation_points":8580000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2734,"end":2765}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4186,"end":4217}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4318,"end":4349}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4582,"end":4613}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 321**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"6ac95fcd3294e97c130c933e1768620f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2734,"end":2765}},"remediation_points":8580000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2635,"end":2666}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4186,"end":4217}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4318,"end":4349}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4582,"end":4613}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 321**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"6ac95fcd3294e97c130c933e1768620f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4186,"end":4217}},"remediation_points":8580000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2635,"end":2666}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2734,"end":2765}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4318,"end":4349}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4582,"end":4613}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 321**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"6ac95fcd3294e97c130c933e1768620f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4318,"end":4349}},"remediation_points":8580000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2635,"end":2666}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2734,"end":2765}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4186,"end":4217}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4582,"end":4613}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 321**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"6ac95fcd3294e97c130c933e1768620f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4582,"end":4613}},"remediation_points":8580000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2635,"end":2666}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2734,"end":2765}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4186,"end":4217}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4318,"end":4349}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 321**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"6ac95fcd3294e97c130c933e1768620f","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1605,"end":1636}},"remediation_points":8520000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2503,"end":2534}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2800,"end":2831}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2965,"end":2996}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4689,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 319**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"15911765354def36ab9f4a087a8b9eaf","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2503,"end":2534}},"remediation_points":8520000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1605,"end":1636}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2800,"end":2831}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2965,"end":2996}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4689,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 319**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"15911765354def36ab9f4a087a8b9eaf","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2800,"end":2831}},"remediation_points":8520000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1605,"end":1636}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2503,"end":2534}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2965,"end":2996}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4689,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 319**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"15911765354def36ab9f4a087a8b9eaf","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2965,"end":2996}},"remediation_points":8520000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1605,"end":1636}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2503,"end":2534}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2800,"end":2831}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4689,"end":4720}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 319**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"15911765354def36ab9f4a087a8b9eaf","severity":"major","engine_name":"duplication"},{"type":"issue","check_name":"similar-code","description":"Similar blocks of code found in 5 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4689,"end":4720}},"remediation_points":8520000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":1605,"end":1636}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2503,"end":2534}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2800,"end":2831}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2965,"end":2996}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 319**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"15911765354def36ab9f4a087a8b9eaf","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":2780,"end":2858}},"remediation_points":20070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2976,"end":3054}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 704**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"4cb8ab53e81f9c5dd232302c719828ca","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":2976,"end":3054}},"remediation_points":20070000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2780,"end":2858}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 704**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"4cb8ab53e81f9c5dd232302c719828ca","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":2536,"end":2597}},"remediation_points":15570000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4722,"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 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":4722,"end":4783}},"remediation_points":15570000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2536,"end":2597}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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 3 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3328,"end":3359}},"remediation_points":8700000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4450,"end":4481}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4483,"end":4514}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 325**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"3016fa8d413c45606489a8a1f19e2799","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":4450,"end":4481}},"remediation_points":8700000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3328,"end":3359}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4483,"end":4514}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 325**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"3016fa8d413c45606489a8a1f19e2799","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":4483,"end":4514}},"remediation_points":8700000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3328,"end":3359}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4450,"end":4481}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 325**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"3016fa8d413c45606489a8a1f19e2799","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":2239,"end":2270}},"remediation_points":8610000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3757,"end":3788}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3856,"end":3887}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 322**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"0dd447ba6ef50ad1b579ce82eceac427","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":3757,"end":3788}},"remediation_points":8610000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2239,"end":2270}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3856,"end":3887}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 322**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"0dd447ba6ef50ad1b579ce82eceac427","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":3856,"end":3887}},"remediation_points":8610000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2239,"end":2270}},{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3757,"end":3788}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 322**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"0dd447ba6ef50ad1b579ce82eceac427","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":4451,"end":4495}},"remediation_points":11430000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4497,"end":4541}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 416**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"b8e85d9c79c32e37ea591ffccf1a408a","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":4497,"end":4541}},"remediation_points":11430000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4451,"end":4495}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 416**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"b8e85d9c79c32e37ea591ffccf1a408a","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":4267,"end":4311}},"remediation_points":11190000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4618,"end":4662}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 408**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"b00d1c3cbff3f884cfc058edccdf5ba8","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":4618,"end":4662}},"remediation_points":11190000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4267,"end":4311}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 408**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"b00d1c3cbff3f884cfc058edccdf5ba8","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":4221,"end":4265}},"remediation_points":11010000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4572,"end":4616}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 402**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"10e1aafcbf6a33a2e10678ab8e6cd99c","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":4572,"end":4616}},"remediation_points":11010000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4221,"end":4265}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 402**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"10e1aafcbf6a33a2e10678ab8e6cd99c","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":2219,"end":2246}},"remediation_points":6660000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3740,"end":3767}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4664,"end":4691}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 257**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"0261402998131e35bccbb6f93bf9a59e","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":3740,"end":3767}},"remediation_points":6660000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2219,"end":2246}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4664,"end":4691}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 257**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"0261402998131e35bccbb6f93bf9a59e","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":4664,"end":4691}},"remediation_points":6660000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2219,"end":2246}},{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3740,"end":3767}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 257**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"0261402998131e35bccbb6f93bf9a59e","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":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":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":"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":"similar-code","description":"Similar blocks of code found in 2 locations. Consider refactoring.","categories":["Duplication"],"location":{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4219,"end":4250}},"remediation_points":8730000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4516,"end":4547}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 326**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"610c53bc169b52b7ba60ad36002b6ff9","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":4516,"end":4547}},"remediation_points":8730000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":4219,"end":4250}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 326**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"610c53bc169b52b7ba60ad36002b6ff9","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":2371,"end":2402}},"remediation_points":8640000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":3889,"end":3920}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 323**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1121972ae278a3c8858cdf053d9f1356","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":3889,"end":3920}},"remediation_points":8640000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2371,"end":2402}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 323**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"1121972ae278a3c8858cdf053d9f1356","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":2833,"end":2864}},"remediation_points":8550000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2998,"end":3029}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 320**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"02f238894ab51ec85a1fcecde17e856e","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":2998,"end":3029}},"remediation_points":8550000,"other_locations":[{"path":"test/integration/adapterTestIntegration.js","lines":{"begin":2833,"end":2864}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 320**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"02f238894ab51ec85a1fcecde17e856e","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":4163,"end":4190}},"remediation_points":6780000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4543,"end":4570}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 261**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"d0ab440061dbae32128c3028935c7a26","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":4543,"end":4570}},"remediation_points":6780000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":4163,"end":4190}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).\n\n## Tuning\n\n**This issue has a mass of 261**.\n\nWe set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.\n\nThe threshold configuration represents the minimum [mass](https://docs.codeclimate.com/docs/duplication#mass) a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.\n\nIf the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.\n\nSee [`codeclimate-duplication`'s documentation](https://docs.codeclimate.com/docs/duplication) for more information about tuning the mass threshold in your `.codeclimate.yml`.\n\n## Refactorings\n\n* [Extract Method](http://sourcemaking.com/refactoring/extract-method)\n* [Extract Class](http://sourcemaking.com/refactoring/extract-class)\n* [Form Template Method](http://sourcemaking.com/refactoring/form-template-method)\n* [Introduce Null Object](http://sourcemaking.com/refactoring/introduce-null-object)\n* [Pull Up Method](http://sourcemaking.com/refactoring/pull-up-method)\n* [Pull Up Field](http://sourcemaking.com/refactoring/pull-up-field)\n* [Substitute Algorithm](http://sourcemaking.com/refactoring/substitute-algorithm)\n\n## Further Reading\n\n* [Don't Repeat Yourself](http://c2.com/cgi/wiki?DontRepeatYourself) on the C2 Wiki\n* [Duplicated Code](http://sourcemaking.com/refactoring/duplicated-code) on SourceMaking\n* [Refactoring: Improving the Design of Existing Code](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672) by Martin Fowler. _Duplicated Code_, p76\n"},"fingerprint":"d0ab440061dbae32128c3028935c7a26","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":2860,"end":2887}},"remediation_points":6600000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":3056,"end":3083}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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":3056,"end":3083}},"remediation_points":6600000,"other_locations":[{"path":"test/unit/adapterTestUnit.js","lines":{"begin":2860,"end":2887}}],"content":{"body":"## Duplicated Code\n\nDuplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:\n\n> Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.\n\nWhen you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and 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":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":"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":"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":"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":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/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":"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":"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/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":"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":"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":"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/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":"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":"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"}]