mohayonao/SCScript

View on GitHub
src/sc/classlib/Core/AbstractFunction.js

Summary

Maintainability
F
3 days
Test Coverage

File AbstractFunction.js has 619 lines of code (exceeds 250 allowed). Consider refactoring.
Open

SCScript.install(function(sc) {
  "use strict";

  require("./Object");

Severity: Major
Found in src/sc/classlib/Core/AbstractFunction.js - About 1 day to fix

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

        builder.addMethod("biexp", {
          args: "inCenter; inMin; inMax; outCenter; outMin; outMax; clip=\\minmax"
        }, function($inCenter, $inMin, $inMax, $outCenter, $outMin, $outMax, $clip) {
          return this.composeNAryOp(
            $.Symbol("biexp"), $.Array([
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 560..568

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

    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

        builder.addMethod("bilin", {
          args: "inCenter; inMin; inMax; outCenter; outMin; outMax; clip=\\minmax"
        }, function($inCenter, $inMin, $inMax, $outCenter, $outMin, $outMax, $clip) {
          return this.composeNAryOp(
            $.Symbol("bilin"), $.Array([
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 570..578

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

    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

        builder.addMethod("curvelin", {
          args: "inMin=0; inMax=1; outMin=1; outMax=1; curve=-4; clip=\\minmax"
        }, function($inMin, $inMax, $outMin, $outMax, $curve, $clip) {
          return this.composeNAryOp(
            $.Symbol("curvelin"), $.Array([ $inMin, $inMax, $outMin, $outMax, $curve, $clip ])
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 544..550

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

    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

        builder.addMethod("lincurve", {
          args: "inMin=0; inMax=1; outMin=1; outMax=1; curve=-4; clip=\\minmax"
        }, function($inMin, $inMax, $outMin, $outMax, $curve, $clip) {
          return this.composeNAryOp(
            $.Symbol("lincurve"), $.Array([ $inMin, $inMax, $outMin, $outMax, $curve, $clip ])
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 552..558

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

    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

        builder.addMethod("linexp", {
          args: "inMin; inMax; outMin; outMax; clip=\\minmax"
        }, function($inMin, $inMax, $outMin, $outMax, $clip) {
          return this.composeNAryOp(
            $.Symbol("linexp"), $.Array([ $inMin, $inMax, $outMin, $outMax, $clip ])
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 3 other locations - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 512..518
    src/sc/classlib/Core/AbstractFunction.js on lines 528..534
    src/sc/classlib/Core/AbstractFunction.js on lines 536..542

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

        builder.addMethod("explin", {
          args: "inMin; inMax; outMin; outMax; clip=\\minmax"
        }, function($inMin, $inMax, $outMin, $outMax, $clip) {
          return this.composeNAryOp(
            $.Symbol("explin"), $.Array([ $inMin, $inMax, $outMin, $outMax, $clip ])
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 3 other locations - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 512..518
    src/sc/classlib/Core/AbstractFunction.js on lines 520..526
    src/sc/classlib/Core/AbstractFunction.js on lines 536..542

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

        builder.addMethod("linlin", {
          args: "inMin; inMax; outMin; outMax; clip=\\minmax"
        }, function($inMin, $inMax, $outMin, $outMax, $clip) {
          return this.composeNAryOp(
            $.Symbol("linlin"), $.Array([ $inMin, $inMax, $outMin, $outMax, $clip ])
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 3 other locations - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 520..526
    src/sc/classlib/Core/AbstractFunction.js on lines 528..534
    src/sc/classlib/Core/AbstractFunction.js on lines 536..542

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

        builder.addMethod("expexp", {
          args: "inMin; inMax; outMin; outMax; clip=\\minmax"
        }, function($inMin, $inMax, $outMin, $outMax, $clip) {
          return this.composeNAryOp(
            $.Symbol("expexp"), $.Array([ $inMin, $inMax, $outMin, $outMax, $clip ])
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 3 other locations - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 512..518
    src/sc/classlib/Core/AbstractFunction.js on lines 520..526
    src/sc/classlib/Core/AbstractFunction.js on lines 528..534

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 63.

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

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

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

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

    Refactorings

    Further Reading

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

        builder.addMethod("blend", {
          args: "that; blendFrac=0.5"
        }, function($that, $blendFrac) {
          return this.composeNAryOp(
            $.Symbol("blend"), $.Array([ $that, $blendFrac ])
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 2 other locations - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 580..586
    src/sc/classlib/Core/AbstractFunction.js on lines 588..594

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

    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

        builder.addMethod("moddif", {
          args: "function; mod"
        }, function($function, $mod) {
          return this.composeNAryOp(
            $.Symbol("moddif"), $.Array([ $function, $mod ])
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 2 other locations - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 504..510
    src/sc/classlib/Core/AbstractFunction.js on lines 588..594

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

    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

        builder.addMethod("degreeToKey", {
          args: "scale; stepsPerOctave=12"
        }, function($scale, $stepsPerOctave) {
          return this.composeNAryOp(
            $.Symbol("degreeToKey"), $.Array([ $scale, $stepsPerOctave ])
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 2 other locations - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 504..510
    src/sc/classlib/Core/AbstractFunction.js on lines 580..586

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

    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

        builder.addMethod("value", function() {
          var $a = this._$a;
          return $a.value.apply($a, arguments).perform(this._$selector);
        });
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 651..654

    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

        builder.addMethod("valueEnvir", function() {
          var $a = this._$a;
          return $a.valueEnvir.apply($a, arguments).perform(this._$selector);
        });
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 1 other location - About 1 hr to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 642..645

    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

        builder.addMethod("fold", function($lo, $hi) {
          return this.composeNAryOp($.Symbol("fold"), $.Array([ $lo, $hi ]));
        });
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 2 other locations - About 45 mins to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 492..494
    src/sc/classlib/Core/AbstractFunction.js on lines 496..498

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

    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

        builder.addMethod("wrap", function($lo, $hi) {
          return this.composeNAryOp($.Symbol("wrap"), $.Array([ $lo, $hi ]));
        });
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 2 other locations - About 45 mins to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 492..494
    src/sc/classlib/Core/AbstractFunction.js on lines 500..502

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

    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

        builder.addMethod("clip", function($lo, $hi) {
          return this.composeNAryOp($.Symbol("clip"), $.Array([ $lo, $hi ]));
        });
    Severity: Major
    Found in src/sc/classlib/Core/AbstractFunction.js and 2 other locations - About 45 mins to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 496..498
    src/sc/classlib/Core/AbstractFunction.js on lines 500..502

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

    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

        builder.addClassMethod("new", function($selector, $a, $arglist) {
          return _.newCopyArgs(this, {
            selector: $selector,
            a: $a,
            arglist: $arglist
    Severity: Minor
    Found in src/sc/classlib/Core/AbstractFunction.js and 2 other locations - About 40 mins to fix
    src/sc/classlib/Streams/BasicOpsStream.js on lines 38..44
    src/sc/classlib/Streams/BasicOpsStream.js on lines 78..84

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

    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

        builder.addMethod("valueArrayEnvir", function($args) {
          return this._$a.valueArrayEnvir($args).perform(this._$selector);
        });
    Severity: Minor
    Found in src/sc/classlib/Core/AbstractFunction.js and 1 other location - About 30 mins to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 647..649

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

    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

        builder.addMethod("valueArray", function($args) {
          return this._$a.valueArray($args).perform(this._$selector);
        });
    Severity: Minor
    Found in src/sc/classlib/Core/AbstractFunction.js and 1 other location - About 30 mins to fix
    src/sc/classlib/Core/AbstractFunction.js on lines 656..658

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 45.

    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