mohayonao/SCScript

View on GitHub
src/sc/classlib/Math/Integer_test.js

Summary

Maintainability
F
1 wk
Test Coverage

File Integer_test.js has 611 lines of code (exceeds 250 allowed). Consider refactoring.
Open

describe("Math/Integer", function() {
  "use strict";

  var testCase = sc.test.testCase;
  var $$ = sc.test.object;
Severity: Major
Found in src/sc/classlib/Math/Integer_test.js - About 1 day to fix

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

        it("#forBy", sinon.test(function() {
          var instance, test;
          var iter = {};
          var $endval   = $$();
          var $stepval  = $$();
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 2 other locations - About 1 day to fix
    src/sc/classlib/Math/Number_test.js on lines 127..142
    src/sc/classlib/Math/Number_test.js on lines 144..159

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

    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("#for", sinon.test(function() {
          var instance, test;
          var iter = {};
          var $endval   = $$();
          var $function = $$();
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 1 other location - About 1 day to fix
    src/sc/classlib/Math/Number_test.js on lines 111..125

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

    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 instance, test;
          var iter = {};
          var $function = $$();
    
    
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 3 other locations - About 1 day to fix
    src/sc/classlib/Core/Object_test.js on lines 210..223
    src/sc/classlib/Math/Float_test.js on lines 452..465
    src/sc/classlib/Math/Integer_test.js on lines 503..516

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

    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 instance, test;
          var iter = {};
          var $function = $$();
    
    
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 3 other locations - About 1 day to fix
    src/sc/classlib/Core/Object_test.js on lines 210..223
    src/sc/classlib/Math/Float_test.js on lines 452..465
    src/sc/classlib/Math/Integer_test.js on lines 446..459

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

    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("#to", sinon.test(function() {
          var instance, test;
          var $hi = $$();
          var $step = $$();
          var SCInterval$new = this.spy(sc.test.func());
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 3 other locations - About 1 day to fix
    src/sc/classlib/Core/AbstractFunction_test.js on lines 69..83
    src/sc/classlib/Streams/Patterns_test.js on lines 236..250
    src/sc/classlib/Streams/Patterns_test.js on lines 492..506

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

    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("#__tag", function() {
          var instance, test;
    
          instance = this.createInstance();
    
    
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 8 other locations - About 2 hrs to fix
    src/sc/classlib/Collections/String_test.js on lines 16..23
    src/sc/classlib/Core/Char_test.js on lines 17..24
    src/sc/classlib/Core/Function_test.js on lines 19..26
    src/sc/classlib/Core/Nil_test.js on lines 15..22
    src/sc/classlib/Core/Object_test.js on lines 17..24
    src/sc/classlib/Core/Symbol_test.js on lines 16..23
    src/sc/classlib/Core/Thread_test.js on lines 146..153
    src/sc/classlib/Math/Float_test.js on lines 16..23

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

    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("#valueOf", function() {
          var instance, test;
    
          instance = this.createInstance(2014);
    
    
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 2 other locations - About 2 hrs to fix
    src/sc/classlib/Math/Float_test.js on lines 25..32
    src/sc/classlib/Math/Float_test.js on lines 34..41

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

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

        it("#hash", function() {
          var instance, test;
    
          instance = this.createInstance();
    
    
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 12 other locations - About 1 hr to fix
    src/sc/classlib/Collections/Association_test.js on lines 43..50
    src/sc/classlib/Core/Function_test.js on lines 191..198
    src/sc/classlib/Core/Function_test.js on lines 301..308
    src/sc/classlib/Core/Kernel_test.js on lines 50..57
    src/sc/classlib/Core/Kernel_test.js on lines 59..66
    src/sc/classlib/Core/Nil_test.js on lines 313..320
    src/sc/classlib/Core/Object_test.js on lines 563..570
    src/sc/classlib/Core/Object_test.js on lines 572..579
    src/sc/classlib/Core/Object_test.js on lines 581..588
    src/sc/classlib/Core/Object_test.js on lines 785..792
    src/sc/classlib/Core/Object_test.js on lines 1175..1182
    src/sc/classlib/Streams/Stream_test.js on lines 27..34

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

        it("#-", function() {
          testCase(this, [
            [ 10, [ 20 ], -10 ],
            [ 10, [ $.Float(20.0) ], $.Float(-10.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 2 other locations - About 1 hr to fix
    src/sc/classlib/Math/Integer_test.js on lines 241..246
    src/sc/classlib/Math/Integer_test.js on lines 248..253

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

    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("#difsqr", function() {
          testCase(this, [
            [ 10, [ 20 ], -300 ],
            [ 10, [ $.Float(20.0) ], $.Float(-300.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 2 other locations - About 1 hr to fix
    src/sc/classlib/Math/Integer_test.js on lines 73..78
    src/sc/classlib/Math/Integer_test.js on lines 241..246

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

    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("#even", function() {
          testCase(this, [
            [ -2, [], true  ],
            [ -1, [], false ],
            [  0, [], true  ],
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Math/Integer_test.js on lines 403..411

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

    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("#ring4", function() {
          testCase(this, [
            [ 10, [ 20 ], -2000 ],
            [ 10, [ $.Float(20.0) ], $.Float(-2000.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 2 other locations - About 1 hr to fix
    src/sc/classlib/Math/Integer_test.js on lines 73..78
    src/sc/classlib/Math/Integer_test.js on lines 248..253

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

    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("#odd", function() {
          testCase(this, [
            [ -2, [], false ],
            [ -1, [], true  ],
            [  0, [], false ],
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Math/Integer_test.js on lines 393..401

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

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

        it("#sumsqr", function() {
          testCase(this, [
            [ 10, [ 20 ], 500 ],
            [ 10, [ $.Float(20.0) ], $.Float(500.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#scaleneg", function() {
          testCase(this, [
            [ 10, [ 20 ], 10 ],
            [ 10, [ $.Float(20.0) ], $.Float(10.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#clip2", function() {
          testCase(this, [
            [ 12, [ 3 ], 3 ],
            [ 12, [ $.Float(3.0) ], $.Float(3.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#lcm", function() {
          testCase(this, [
            [ 123, [ 456 ], 18696 ],
            [ 123, [ $.Float(456.0) ], $.Float(18696.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#roundUp", function() {
          testCase(this, [
            [ 123, [ 25 ], 125 ],
            [ 123, [ $.Float(25.0) ], $.Float(125.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#unsignedRightShift", function() {
          testCase(this, [
            [ 11, [ 2 ], 2 ],
            [ 11, [ $.Float(2.0) ], $.Float(2.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#ring1", function() {
          testCase(this, [
            [ 10, [ 20 ], 210 ],
            [ 10, [ $.Float(20.0) ], $.Float(210.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#bitOr", function() {
          testCase(this, [
            [ 123, [ 456 ], 507 ],
            [ 123, [ $.Float(456.0) ], $.Float(507.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#trunc", function() {
          testCase(this, [
            [ 123, [ 25 ], 100 ],
            [ 123, [ $.Float(25.0) ], $.Float(100.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#bitAnd", function() {
          testCase(this, [
            [ 123, [ 456 ], 72 ],
            [ 123, [ $.Float(456.0) ], $.Float(72.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#absdif", function() {
          testCase(this, [
            [ 10, [ 20 ], 10 ],
            [ 10, [ $.Float(20.0) ], $.Float(10.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#ring3", function() {
          testCase(this, [
            [ 10, [ 20 ], 2000 ],
            [ 10, [ $.Float(20.0) ], $.Float(2000.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#gcd", function() {
          testCase(this, [
            [ 123, [ 456 ], 3 ],
            [ 123, [ $.Float(456.0) ], $.Float(3.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#rightShift", function() {
          testCase(this, [
            [ 11, [ 2 ], 2 ],
            [ 11, [ $.Float(2.0) ], $.Float(2.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#excess", function() {
          testCase(this, [
            [ 12, [ 3 ], 9 ],
            [ 12, [ $.Float(3.0) ], $.Float(9.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317

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

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

        it("#max", function() {
          testCase(this, [
            [ 10, [ 20 ], 20 ],
            [ 10, [ $.Float(0.0) ], $.Float(10.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#ring2", function() {
          testCase(this, [
            [ 10, [ 20 ], 230 ],
            [ 10, [ $.Float(20.0) ], $.Float(230.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#*", function() {
          testCase(this, [
            [ 10, [ 20 ], 200 ],
            [ 10, [ $.Float(20.0) ], $.Float(200.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#mod", function() {
          testCase(this, [
            [ 30, [ 20 ], 10 ],
            [ 30, [ $.Float(20.0) ], $.Float(10) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#round", function() {
          testCase(this, [
            [ 123, [ 25 ], 125 ],
            [ 123, [ $.Float(25.0) ], $.Float(125.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#leftShift", function() {
          testCase(this, [
            [ 11, [ 2 ], 44 ],
            [ 11, [ $.Float(2.0) ], $.Float(44.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#fold2", function() {
          testCase(this, [
            [ 12, [ 3 ], 0 ],
            [ 12, [ $.Float(3.0) ], $.Float(0.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#bitXor", function() {
          testCase(this, [
            [ 123, [ 456 ], 435 ],
            [ 123, [ $.Float(456.0) ], $.Float(435.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#sqrdif", function() {
          testCase(this, [
            [ 10, [ 20 ], 100 ],
            [ 10, [ $.Float(20.0) ], $.Float(100.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#amclip", function() {
          testCase(this, [
            [ 10, [ 20 ], 200 ],
            [ 10, [ $.Float(20.0) ], $.Float(200.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 115..120
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

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

        it("#min", function() {
          testCase(this, [
            [ 10, [ 20 ], 10 ],
            [ 10, [ $.Float(20.0) ], $.Float(10.0) ],
          ]);
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 25 other locations - About 50 mins to fix
    src/sc/classlib/Math/Integer_test.js on lines 80..85
    src/sc/classlib/Math/Integer_test.js on lines 94..99
    src/sc/classlib/Math/Integer_test.js on lines 108..113
    src/sc/classlib/Math/Integer_test.js on lines 122..127
    src/sc/classlib/Math/Integer_test.js on lines 129..134
    src/sc/classlib/Math/Integer_test.js on lines 136..141
    src/sc/classlib/Math/Integer_test.js on lines 143..148
    src/sc/classlib/Math/Integer_test.js on lines 150..155
    src/sc/classlib/Math/Integer_test.js on lines 157..162
    src/sc/classlib/Math/Integer_test.js on lines 164..169
    src/sc/classlib/Math/Integer_test.js on lines 171..176
    src/sc/classlib/Math/Integer_test.js on lines 199..204
    src/sc/classlib/Math/Integer_test.js on lines 206..211
    src/sc/classlib/Math/Integer_test.js on lines 213..218
    src/sc/classlib/Math/Integer_test.js on lines 220..225
    src/sc/classlib/Math/Integer_test.js on lines 227..232
    src/sc/classlib/Math/Integer_test.js on lines 234..239
    src/sc/classlib/Math/Integer_test.js on lines 255..260
    src/sc/classlib/Math/Integer_test.js on lines 262..267
    src/sc/classlib/Math/Integer_test.js on lines 269..274
    src/sc/classlib/Math/Integer_test.js on lines 283..288
    src/sc/classlib/Math/Integer_test.js on lines 290..295
    src/sc/classlib/Math/Integer_test.js on lines 297..302
    src/sc/classlib/Math/Integer_test.js on lines 312..317
    src/sc/classlib/Math/Integer_test.js on lines 319..324

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

    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

        before(function() {
          this.createInstance = function(value) {
            return $.Integer(typeof value === "undefined" ? 0 : value);
          };
        });
    Severity: Minor
    Found in src/sc/classlib/Math/Integer_test.js and 1 other location - About 50 mins to fix
    src/sc/classlib/Math/Float_test.js on lines 10..14

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

    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("#atan2", function() {
          testCase(this, [
            [ 1, [ 2 ], 0.46364760900081 ],
            [ 1, [ $.Float(2.0) ], 0.46364760900081 ],
          ], { closeTo: 1e-6 });
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 5 other locations - About 50 mins to fix
    src/sc/classlib/Math/Float_test.js on lines 191..196
    src/sc/classlib/Math/Float_test.js on lines 198..203
    src/sc/classlib/Math/Float_test.js on lines 205..210
    src/sc/classlib/Math/Integer_test.js on lines 185..190
    src/sc/classlib/Math/Integer_test.js on lines 192..197

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

        it("#hypot", function() {
          testCase(this, [
            [ 1, [ 2 ], 2.2360679774998 ],
            [ 1, [ $.Float(2.0) ], 2.2360679774998 ],
          ], { closeTo: 1e-6 });
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 5 other locations - About 50 mins to fix
    src/sc/classlib/Math/Float_test.js on lines 191..196
    src/sc/classlib/Math/Float_test.js on lines 198..203
    src/sc/classlib/Math/Float_test.js on lines 205..210
    src/sc/classlib/Math/Integer_test.js on lines 178..183
    src/sc/classlib/Math/Integer_test.js on lines 192..197

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

        it("#hypotApx", function() {
          testCase(this, [
            [ 1, [ 2 ], 2.5857864320278 ],
            [ 1, [ $.Float(2.0) ], 2.5857864320278 ],
          ], { closeTo: 1e-6 });
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 5 other locations - About 50 mins to fix
    src/sc/classlib/Math/Float_test.js on lines 191..196
    src/sc/classlib/Math/Float_test.js on lines 198..203
    src/sc/classlib/Math/Float_test.js on lines 205..210
    src/sc/classlib/Math/Integer_test.js on lines 178..183
    src/sc/classlib/Math/Integer_test.js on lines 185..190

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

        it(".new", function() {
          expect(function() {
            SCInteger.new();
          }).to.throw("should use literals");
        });
    Severity: Major
    Found in src/sc/classlib/Math/Integer_test.js and 3 other locations - About 35 mins to fix
    src/sc/classlib/Core/Boolean_test.js on lines 91..95
    src/sc/classlib/Core/Boolean_test.js on lines 191..195
    src/sc/classlib/Math/Float_test.js on lines 59..63

    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