mohayonao/SCScript

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

Summary

Maintainability
F
3 wks
Test Coverage

File ArrayedCollection_test.js has 1334 lines of code (exceeds 250 allowed). Consider refactoring.
Open

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

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

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

        it("#clipAt", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ -2 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 1 day to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 168..211
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 213..256

    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 236.

    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("#wrapAt", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ -2 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 1 day to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 123..166
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 213..256

    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 236.

    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("#foldAt", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ -2 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 1 day to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 123..166
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 168..211

    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 236.

    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("#do", sinon.test(function() {
          var test, instance;
          var iter = {};
          var $function = $$();
    
    
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 3 other locations - About 1 day to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1035..1050
    src/sc/classlib/Collections/Set_test.js on lines 50..65
    src/sc/classlib/Core/Function_test.js on lines 351..366

    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 215.

    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("#reverseDo", sinon.test(function() {
          var test, instance;
          var iter = {};
          var $function = $$();
    
    
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 3 other locations - About 1 day to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1018..1033
    src/sc/classlib/Collections/Set_test.js on lines 50..65
    src/sc/classlib/Core/Function_test.js on lines 351..366

    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 215.

    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

      describe("SCFloatArray", function() {
    
        it("#valueOf", function() {
          var instance, test;
          var expected = new Float32Array([ 0, 0.5, -0.5 ]);
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 7 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1431..1449

    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 193.

    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

      describe("SCDoubleArray", function() {
    
        it("#valueOf", function() {
          var instance, test;
          var expected = new Float64Array([ 0, 0.5, -0.5 ]);
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 7 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1411..1429

    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 193.

    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

      describe("SCInt32Array", function() {
    
        it("#valueOf", function() {
          var instance, test;
          var expected = new Int32Array([ 0, -1, 0 ]);
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 7 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1351..1369
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1371..1389

    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 191.

    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

      describe("SCInt16Array", function() {
    
        it("#valueOf", function() {
          var instance, test;
          var expected = new Int16Array([ 0, -1, 0 ]);
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 7 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1351..1369
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1391..1409

    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 191.

    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

      describe("SCInt8Array", function() {
    
        it("#valueOf", function() {
          var instance, test;
          var expected = new Int8Array([ 0, -1, 0 ]);
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 7 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1371..1389
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 1391..1409

    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 191.

    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("#clipPut", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 10, 100 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 5 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 314..335
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 337..358

    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 139.

    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("#foldPut", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 10, 100 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 5 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 291..312
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 314..335

    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 139.

    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("#wrapPut", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 10, 100 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 5 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 291..312
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 337..358

    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 139.

    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("#atInc", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 2 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 4 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 590..611

    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 125.

    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("#atDec", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 2 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 4 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 567..588

    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 125.

    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("#takeAt", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 2 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 360..380

    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 112.

    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("#removeAt", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 2 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 3 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 382..402

    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 112.

    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("#slotPut", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 2, 10 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 2 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 891..906
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 984..999

    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 90.

    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("#move", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 1, 4 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 2 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 495..510
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 984..999

    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 90.

    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("#seriesFill", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 10, 20 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 2 hrs to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 495..510
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 891..906

    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 90.

    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/ArrayedCollection_test.js and 1 other location - About 2 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 1237..1244

    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 30 locations. Consider refactoring.
    Open

        it("#isArray", function() {
          var instance, test;
    
          instance = this.createInstance();
    
    
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 29 other locations - About 2 hrs to fix
    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/Collection_test.js on lines 222..229
    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 30 locations. Consider refactoring.
    Open

        it("#archiveAsCompileString", function() {
          var instance, test;
    
          instance = this.createInstance();
    
    
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_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 1312..1319
    src/sc/classlib/Collections/Collection_test.js on lines 222..229
    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 30 locations. Consider refactoring.
    Open

        it("#archiveAsObject", function() {
          var instance, test;
    
          instance = this.createInstance();
    
    
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_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/Collection_test.js on lines 222..229
    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 15 locations. Consider refactoring.
    Open

        it("#rate", function() {
          var instance, test;
    
          instance = this.createInstance();
    
    
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 14 other locations - About 2 hrs to fix
    src/sc/classlib/Core/Char_test.js on lines 26..33
    src/sc/classlib/Core/Char_test.js on lines 35..42
    src/sc/classlib/Core/Char_test.js on lines 137..144
    src/sc/classlib/Core/Char_test.js on lines 146..153
    src/sc/classlib/Core/Char_test.js on lines 342..349
    src/sc/classlib/Core/Nil_test.js on lines 40..46
    src/sc/classlib/Core/Nil_test.js on lines 48..54
    src/sc/classlib/Core/Object_test.js on lines 102..109
    src/sc/classlib/Core/Object_test.js on lines 1031..1038
    src/sc/classlib/Core/Object_test.js on lines 1040..1047
    src/sc/classlib/Core/Symbol_test.js on lines 25..32
    src/sc/classlib/Core/Symbol_test.js on lines 34..41
    src/sc/classlib/Core/Symbol_test.js on lines 507..514
    src/sc/classlib/Math/SimpleNumber_test.js on lines 939..946

    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, "ArrayedCollection" + this.test.title);
          };
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 2 other locations - About 2 hrs to fix
    src/sc/classlib/Collections/Collection_test.js on lines 14..19
    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 4 locations. Consider refactoring.
    Open

        it("#__elem__", function() {
          var instance, test;
          var $obj = $$();
    
          instance = this.createInstance();
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 3 other locations - About 2 hrs to fix
    src/sc/classlib/Core/Nil_test.js on lines 131..139
    src/sc/classlib/Core/Nil_test.js on lines 303..311
    src/sc/classlib/Core/Nil_test.js on lines 463..471

    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 79.

    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("#indexOf", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 2 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 419..432

    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 72.

    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("#indexOfGreaterThan", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 2 ],
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 404..417

    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 72.

    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("#asArray", function() {
          var instance;
    
          instance = this.createInstance();
          expect(instance.asArray).to.doNothing;
    Severity: Major
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 89 other locations - About 50 mins to fix
    src/sc/classlib/Collections/Collection_test.js on lines 215..220
    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/ArrayedCollection_test.js and 1 other location - About 50 mins to fix
    src/sc/classlib/Collections/Collection_test.js on lines 159..170

    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

            {
              source: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ],
              args: [ 7, 4, 2, 0 ],
              result: this,
              after: [ 1, 2, 3, 4, 0, 6, 7, 0, 9, 10 ]
    Severity: Minor
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 40 mins to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 716..721

    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

            {
              source: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ],
              args: [ 2, 4, 7, 0 ],
              result: this,
              after: [ 1, 2, 0, 4, 0, 6, 0, 8, 9, 10 ]
    Severity: Minor
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 40 mins to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 764..769

    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("#slotKey", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 100 ],
    Severity: Minor
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 35 mins to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 485..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 47.

    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("#slotAt", function() {
          testCase(this, [
            {
              source: [ 1, 2, 3, 4, 5 ],
              args: [ 2 ],
    Severity: Minor
    Found in src/sc/classlib/Collections/ArrayedCollection_test.js and 1 other location - About 35 mins to fix
    src/sc/classlib/Collections/ArrayedCollection_test.js on lines 512..520

    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 47.

    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