mohayonao/SCScript

View on GitHub
src/sc/classlib/Collections/Collection_test.js

Summary

Maintainability
F
3 wks
Test Coverage

File Collection_test.js has 1093 lines of code (exceeds 250 allowed). Consider refactoring.
Open

describe("Collections/Collection", function() {
  "use strict";

  var testCase = sc.test.testCase;
  var $$ = sc.test.object;
Severity: Major
Found in src/sc/classlib/Collections/Collection_test.js - About 2 days to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#detectIndexMsg", sinon.test(function() {
          var instance, test;
          var $elem1 = $$(-2);
          var $elem2 = $$(-1);
          var $elem3 = $$( 0);
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 1 day to fix
    src/sc/classlib/Collections/Collection_test.js on lines 595..616

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 312.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#detectMsg", sinon.test(function() {
          var instance, test;
          var $elem1 = $$(-2);
          var $elem2 = $$(-1);
          var $elem3 = $$( 0);
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 1 day to fix
    src/sc/classlib/Collections/Collection_test.js on lines 618..639

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 312.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it("#asSet", sinon.test(function() {
          var instance, test;
          var $new = this.spy(function() {
            return $$({ addAll: $addAll });
          });
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 2 other locations - About 1 day to fix
    src/sc/classlib/Collections/Collection_test.js on lines 1128..1144
    src/sc/classlib/Collections/Collection_test.js on lines 1146..1162

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 254.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it("#asList", sinon.test(function() {
          var instance, test;
          var $new = this.spy(function() {
            return $$({ addAll: $addAll });
          });
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 2 other locations - About 1 day to fix
    src/sc/classlib/Collections/Collection_test.js on lines 1128..1144
    src/sc/classlib/Collections/Collection_test.js on lines 1164..1180

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 254.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it("#asBag", sinon.test(function() {
          var instance, test;
          var $new = this.spy(function() {
            return $$({ addAll: $addAll });
          });
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 2 other locations - About 1 day to fix
    src/sc/classlib/Collections/Collection_test.js on lines 1146..1162
    src/sc/classlib/Collections/Collection_test.js on lines 1164..1180

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 254.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it("#collect", sinon.test(function() {
          var instance, test;
          var $function = $$();
    
          instance = this.createInstance();
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 2 other locations - About 5 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 416..426
    src/sc/classlib/Collections/Collection_test.js on lines 428..438

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 147.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it("#select", sinon.test(function() {
          var instance, test;
          var $function = $$();
    
          instance = this.createInstance();
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 2 other locations - About 5 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 404..414
    src/sc/classlib/Collections/Collection_test.js on lines 428..438

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 147.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it("#reject", sinon.test(function() {
          var instance, test;
          var $function = $$();
    
          instance = this.createInstance();
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 2 other locations - About 5 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 404..414
    src/sc/classlib/Collections/Collection_test.js on lines 416..426

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 147.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

        it("#@", sinon.test(function() {
          var instance, test;
          var $index = $$();
    
          instance = this.createInstance();
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 8 other locations - About 5 hrs to fix
    src/sc/classlib/Collections/SequenceableCollection_test.js on lines 27..37
    src/sc/classlib/Collections/SequenceableCollection_test.js on lines 39..49
    src/sc/classlib/Collections/SequenceableCollection_test.js on lines 51..61
    src/sc/classlib/Collections/Set_test.js on lines 258..268
    src/sc/classlib/Collections/Set_test.js on lines 270..280
    src/sc/classlib/Collections/Set_test.js on lines 282..292
    src/sc/classlib/Collections/Set_test.js on lines 294..304
    src/sc/classlib/Core/Object_test.js on lines 447..457

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 146.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it("#matchItem", sinon.test(function() {
          var instance, test;
          var $item = $$();
    
          instance = this.createInstance();
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 2 other locations - About 5 hrs to fix
    src/sc/classlib/Core/AbstractFunction_test.js on lines 595..605
    src/sc/classlib/Core/Object_test.js on lines 1612..1622

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 146.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        it("#maxItem", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5, 5, 4, 3, 2, 1 ],
              result: 5
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 3 other locations - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 838..852
    src/sc/classlib/Collections/Collection_test.js on lines 854..868
    src/sc/classlib/Collections/Collection_test.js on lines 870..884

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 108.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        it("#maxIndex", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5, 5, 4, 3, 2, 1 ],
              result: 4
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 3 other locations - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 822..836
    src/sc/classlib/Collections/Collection_test.js on lines 838..852
    src/sc/classlib/Collections/Collection_test.js on lines 870..884

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 108.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        it("#minIndex", function() {
          testCase(this, [
            {
              source: [ 5, 4, 3, 2, 1, 1, 2, 3, 4, 5 ],
              result: 4
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 3 other locations - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 822..836
    src/sc/classlib/Collections/Collection_test.js on lines 838..852
    src/sc/classlib/Collections/Collection_test.js on lines 854..868

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 108.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        it("#minItem", function() {
          testCase(this, [
            {
              source: [ 5, 4, 3, 2, 1, 1, 2, 3, 4, 5 ],
              result: 1
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 3 other locations - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 822..836
    src/sc/classlib/Collections/Collection_test.js on lines 854..868
    src/sc/classlib/Collections/Collection_test.js on lines 870..884

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 108.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#maxValue", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5, 5, 4, 3, 2, 1 ],
              result: null
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 902..916

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 108.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#lastForWhich", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ function($item) {
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 660..677

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 108.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#minValue", function() {
          testCase(this, [
            {
              source: [ 5, 4, 3, 2, 1, 1, 2, 3, 4, 5 ],
              result: null
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 886..900

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 108.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#lastIndexForWhich", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ function($item) {
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 641..658

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 108.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#includesAny", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ [ 20, 40 ] ],
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 372..390

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 106.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#includesAll", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ [ 20, 40 ] ],
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 352..370

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 106.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#includesEqual", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ 20 ],
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 312..330

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#detectIndex", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ function($elem) {
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 476..493

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#includes", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ 20 ],
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 332..350

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#detect", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ function($elem) {
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 495..512

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#any", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ function($a) {
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 749..766

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 104.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#every", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ function($a) {
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 730..747

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 104.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#asString", function() {
          var instance, test;
    
          instance = this.createInstance([ 1, 2, 3 ]);
    
    
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 2 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1285..1292

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 89.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#product", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              result: 120
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 2 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 768..782

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#sum", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              result: 15
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 2 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 793..807

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 30 locations. Consider refactoring.
    Open

        it("#isCollection", function() {
          var instance, test;
    
          instance = this.createInstance();
    
    
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 29 other locations - About 2 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 613..620
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1303..1310
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1312..1319
    src/sc/classlib/Collections/SequenceableCollection_test.js on lines 1174..1181
    src/sc/classlib/Collections/String_test.js on lines 225..232
    src/sc/classlib/Core/Boolean_test.js on lines 62..69
    src/sc/classlib/Core/Boolean_test.js on lines 112..119
    src/sc/classlib/Core/Boolean_test.js on lines 212..219
    src/sc/classlib/Core/Boolean_test.js on lines 255..262
    src/sc/classlib/Core/Function_test.js on lines 34..41
    src/sc/classlib/Core/Function_test.js on lines 45..52
    src/sc/classlib/Core/Function_test.js on lines 54..61
    src/sc/classlib/Core/Nil_test.js on lines 32..38
    src/sc/classlib/Core/Nil_test.js on lines 60..66
    src/sc/classlib/Core/Nil_test.js on lines 68..74
    src/sc/classlib/Core/Nil_test.js on lines 103..110
    src/sc/classlib/Core/Nil_test.js on lines 112..119
    src/sc/classlib/Core/Nil_test.js on lines 176..183
    src/sc/classlib/Core/Nil_test.js on lines 402..408
    src/sc/classlib/Core/Nil_test.js on lines 527..533
    src/sc/classlib/Core/Object_test.js on lines 670..677
    src/sc/classlib/Core/Object_test.js on lines 811..818
    src/sc/classlib/Core/Object_test.js on lines 820..827
    src/sc/classlib/Core/Object_test.js on lines 958..965
    src/sc/classlib/Core/Object_test.js on lines 1568..1575
    src/sc/classlib/Core/Object_test.js on lines 1730..1737
    src/sc/classlib/Core/Object_test.js on lines 1739..1746
    src/sc/classlib/Core/Object_test.js on lines 1748..1755
    src/sc/classlib/Core/Symbol_test.js on lines 486..493

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 84.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        before(function() {
          this.createInstance = function(source, immutable) {
            var instance = $.Array((source||[]).map($$), !!immutable);
            return $$(instance, "Collection" + this.test.title);
          };
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 2 other locations - About 2 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 15..20
    src/sc/classlib/Collections/SequenceableCollection_test.js on lines 11..16

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 83.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#injectr", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ [], function($a, $b, $i) {
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 2 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 679..689

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 82.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#inject", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ [], function($a, $b, $i) {
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 2 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 691..701

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 82.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        it("#species", function() {
          var instance, test;
    
          instance = this.createInstance();
    
    
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 5 other locations - About 1 hr to fix
    src/sc/classlib/Collections/Set_test.js on lines 39..46
    src/sc/classlib/Collections/String_test.js on lines 250..257
    src/sc/classlib/Core/Object_test.js on lines 238..245
    src/sc/classlib/Streams/Stream_test.js on lines 675..682
    src/sc/classlib/Streams/Stream_test.js on lines 736..743

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 68.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#valueOf", function() {
          var instance, test;
    
          instance = SCCollection.new();
    
    
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Collections/SequenceableCollection_test.js on lines 18..25

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 68.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        it("#add", function() {
          var instance;
    
          instance = this.createInstance();
          expect(instance.add.__errorType).to.equal(sc.ERRID_SUBCLASS_RESPONSIBILITY);
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 4 other locations - About 1 hr to fix
    src/sc/classlib/Collections/Collection_test.js on lines 150..155
    src/sc/classlib/Collections/Collection_test.js on lines 249..254
    src/sc/classlib/Streams/Stream_test.js on lines 36..41
    src/sc/classlib/Streams/Stream_test.js on lines 89..94

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 63.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        it("#remove", function() {
          var instance;
    
          instance = this.createInstance();
          expect(instance.remove.__errorType).to.equal(sc.ERRID_SUBCLASS_RESPONSIBILITY);
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 4 other locations - About 1 hr to fix
    src/sc/classlib/Collections/Collection_test.js on lines 150..155
    src/sc/classlib/Collections/Collection_test.js on lines 231..236
    src/sc/classlib/Streams/Stream_test.js on lines 36..41
    src/sc/classlib/Streams/Stream_test.js on lines 89..94

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 63.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        it("#do", function() {
          var instance;
    
          instance = this.createInstance();
          expect(instance.do.__errorType).to.equal(sc.ERRID_SUBCLASS_RESPONSIBILITY);
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 4 other locations - About 1 hr to fix
    src/sc/classlib/Collections/Collection_test.js on lines 231..236
    src/sc/classlib/Collections/Collection_test.js on lines 249..254
    src/sc/classlib/Streams/Stream_test.js on lines 36..41
    src/sc/classlib/Streams/Stream_test.js on lines 89..94

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 63.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

        it.skip("#powerset", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3 ],
              result: [
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Collections/Array_test.js on lines 704..713

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 62.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#removeEvery", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ [ 10, 30 ] ],
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Collections/Collection_test.js on lines 256..265

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 59.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#removeAll", function() {
          testCase(this, [
            {
              source: [ 10, 20, 30, 40, 50 ],
              args: [ [ 10, 30 ] ],
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Collections/Collection_test.js on lines 267..276

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 59.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

          expect(test).to.be.a("SCArray").that.deep.equals([
            [ null, null, null ], [ null, null, null ], [ null, null, null ]
          ]);
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Collections/Collection_test.js on lines 92..94

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

          expect(test).to.be.a("SCArray").that.deep.equals([
            [ null, null, null ], [ null, null, null ], [ null, null, null ]
          ]);
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Collections/Collection_test.js on lines 57..59

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 90 locations. Consider refactoring.
    Open

        it("#asCollection", function() {
          var instance;
    
          instance = this.createInstance();
          expect(instance.asCollection).to.doNothing;
    Severity: Major
    Found in src/sc/classlib/Collections/Collection_test.js and 89 other locations - About 50 mins to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 622..627
    src/sc/classlib/Collections/SequenceableCollection_test.js on lines 192..197
    src/sc/classlib/Collections/SequenceableCollection_test.js on lines 1621..1626
    src/sc/classlib/Collections/Set_test.js on lines 306..311
    src/sc/classlib/Collections/String_test.js on lines 234..239
    src/sc/classlib/Core/AbstractFunction_test.js on lines 325..330
    src/sc/classlib/Core/Boolean_test.js on lines 146..151
    src/sc/classlib/Core/Boolean_test.js on lines 238..243
    src/sc/classlib/Core/Char_test.js on lines 120..125
    src/sc/classlib/Core/Nil_test.js on lines 141..146
    src/sc/classlib/Core/Nil_test.js on lines 148..153
    src/sc/classlib/Core/Nil_test.js on lines 155..160
    src/sc/classlib/Core/Nil_test.js on lines 162..167
    src/sc/classlib/Core/Nil_test.js on lines 169..174
    src/sc/classlib/Core/Nil_test.js on lines 185..190
    src/sc/classlib/Core/Nil_test.js on lines 192..197
    src/sc/classlib/Core/Nil_test.js on lines 199..204
    src/sc/classlib/Core/Nil_test.js on lines 206..211
    src/sc/classlib/Core/Nil_test.js on lines 213..218
    src/sc/classlib/Core/Nil_test.js on lines 220..225
    src/sc/classlib/Core/Nil_test.js on lines 227..232
    src/sc/classlib/Core/Nil_test.js on lines 234..239
    src/sc/classlib/Core/Nil_test.js on lines 241..246
    src/sc/classlib/Core/Nil_test.js on lines 248..253
    src/sc/classlib/Core/Nil_test.js on lines 268..273
    src/sc/classlib/Core/Nil_test.js on lines 275..280
    src/sc/classlib/Core/Nil_test.js on lines 282..287
    src/sc/classlib/Core/Nil_test.js on lines 289..294
    src/sc/classlib/Core/Nil_test.js on lines 296..301
    src/sc/classlib/Core/Nil_test.js on lines 322..327
    src/sc/classlib/Core/Nil_test.js on lines 362..367
    src/sc/classlib/Core/Nil_test.js on lines 369..374
    src/sc/classlib/Core/Nil_test.js on lines 449..454
    src/sc/classlib/Core/Nil_test.js on lines 456..461
    src/sc/classlib/Core/Nil_test.js on lines 497..502
    src/sc/classlib/Core/Nil_test.js on lines 504..509
    src/sc/classlib/Core/Nil_test.js on lines 511..516
    src/sc/classlib/Core/Nil_test.js on lines 518..523
    src/sc/classlib/Core/Nil_test.js on lines 548..553
    src/sc/classlib/Core/Nil_test.js on lines 555..560
    src/sc/classlib/Core/Object_test.js on lines 343..348
    src/sc/classlib/Core/Object_test.js on lines 469..474
    src/sc/classlib/Core/Object_test.js on lines 476..481
    src/sc/classlib/Core/Object_test.js on lines 483..488
    src/sc/classlib/Core/Object_test.js on lines 490..495
    src/sc/classlib/Core/Object_test.js on lines 600..605
    src/sc/classlib/Core/Object_test.js on lines 607..612
    src/sc/classlib/Core/Object_test.js on lines 642..647
    src/sc/classlib/Core/Object_test.js on lines 649..654
    src/sc/classlib/Core/Object_test.js on lines 656..661
    src/sc/classlib/Core/Object_test.js on lines 663..668
    src/sc/classlib/Core/Object_test.js on lines 804..809
    src/sc/classlib/Core/Object_test.js on lines 829..834
    src/sc/classlib/Core/Object_test.js on lines 836..841
    src/sc/classlib/Core/Object_test.js on lines 1080..1085
    src/sc/classlib/Core/Object_test.js on lines 1168..1173
    src/sc/classlib/Core/Object_test.js on lines 1184..1189
    src/sc/classlib/Core/Object_test.js on lines 1624..1629
    src/sc/classlib/Core/Object_test.js on lines 1631..1636
    src/sc/classlib/Core/Object_test.js on lines 1757..1762
    src/sc/classlib/Core/Object_test.js on lines 1764..1769
    src/sc/classlib/Core/Object_test.js on lines 1771..1776
    src/sc/classlib/Core/Object_test.js on lines 1863..1868
    src/sc/classlib/Core/Ref_test.js on lines 119..124
    src/sc/classlib/Core/Symbol_test.js on lines 47..52
    src/sc/classlib/Core/Symbol_test.js on lines 268..273
    src/sc/classlib/Core/Symbol_test.js on lines 299..304
    src/sc/classlib/Core/Symbol_test.js on lines 422..427
    src/sc/classlib/Core/Symbol_test.js on lines 429..434
    src/sc/classlib/Core/Symbol_test.js on lines 436..441
    src/sc/classlib/Core/Symbol_test.js on lines 443..448
    src/sc/classlib/Core/Symbol_test.js on lines 450..455
    src/sc/classlib/Core/Symbol_test.js on lines 457..462
    src/sc/classlib/Core/Symbol_test.js on lines 516..521
    src/sc/classlib/Core/Symbol_test.js on lines 523..528
    src/sc/classlib/Core/Thread_test.js on lines 53..58
    src/sc/classlib/Core/Thread_test.js on lines 102..107
    src/sc/classlib/Core/Thread_test.js on lines 109..114
    src/sc/classlib/Core/Thread_test.js on lines 116..121
    src/sc/classlib/Math/Number_test.js on lines 79..84
    src/sc/classlib/Math/Number_test.js on lines 95..100
    src/sc/classlib/Math/SimpleNumber_test.js on lines 987..992
    src/sc/classlib/Math/SimpleNumber_test.js on lines 994..999
    src/sc/classlib/Math/SimpleNumber_test.js on lines 1001..1006
    src/sc/classlib/Math/SimpleNumber_test.js on lines 1008..1013
    src/sc/classlib/Math/SimpleNumber_test.js on lines 1015..1020
    src/sc/classlib/Math/SimpleNumber_test.js on lines 1022..1027
    src/sc/classlib/Math/SimpleNumber_test.js on lines 1205..1210
    src/sc/classlib/Streams/Stream_test.js on lines 43..48

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 51.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#size", function() {
          testCase(this, [
            {
              source: [],
              result: 0
    Severity: Minor
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 50 mins to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 41..52

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 51.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#isEmpty", function() {
          testCase(this, [
            {
              source: [],
              result: true
    Severity: Minor
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 40 mins to fix
    src/sc/classlib/Collections/Collection_test.js on lines 202..213

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 49.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it("#notEmpty", function() {
          testCase(this, [
            {
              source: [],
              result: false
    Severity: Minor
    Found in src/sc/classlib/Collections/Collection_test.js and 1 other location - About 40 mins to fix
    src/sc/classlib/Collections/Collection_test.js on lines 189..200

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 49.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status