etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

Function print has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function print(ctx, skipRoot) {

  var i,
      flx,
      _flx,
Severity: Minor
Found in lib/js-printer/index.js - About 1 hr to fix

    Function matcherFromTokens has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function matcherFromTokens( tokens ) {
        var checkContext, matcher, j,
            len = tokens.length,
            leadingRelative = Expr.relative[ tokens[0].type ],
            implicitRelative = leadingRelative || Expr.relative[" "],
    Severity: Minor
    Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

      Function Integrator has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function Integrator(config) {
        var port = process.env.PORT || 3000,
            hookUrl = 'https://hooks.slack.com/services/' + config.hookPath;
      
        this.app = express();
      Severity: Minor
      Found in test-set/node-slack-integrator-master/integrator.js - About 1 hr to fix

        Function show has 42 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          , show: function () {
              var $tip
                , pos
                , actualWidth
                , actualHeight
        Severity: Minor
        Found in test-set/gifsockets-server-master/public/js/bootstrap.js - About 1 hr to fix

          Function linRepulsion has 42 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                linRepulsion: function(c) {
                  this.coefficient = c;
                  this.apply_nn = function(n1, n2) {
                    if (n1.fa2 && n2.fa2)
                    {

            Function neighborhoods has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              sigma.plugins.neighborhoods = function() {
                var ready = false,
                    readyCallbacks = [],
                    graph = new sigma.classes.graph();
            
            

              Function resize has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                sigma.renderers.webgl.prototype.resize = function(w, h) {
                  var k,
                      oldWidth = this.width,
                      oldHeight = this.height;
              
              

                Consider simplifying this complex logical expression.
                Open

                            if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                                ( jQuery.support.htmlSerialize || !rnoshimcache.test( value )  ) &&
                                ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
                                !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
                
                
                Severity: Critical
                Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

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

                    ctx.lineTo(
                      t[p + 'x'] - v.x * t[p + 'size'],
                      t[p + 'y'] - v.y * t[p + 'size']
                    );
                  Severity: Major
                  Found in prototypes/express/src/console/script.js and 4 other locations - About 1 hr to fix
                  prototypes/express/src/console/script.js on lines 217..220
                  prototypes/express/src/console/script.js on lines 236..239
                  prototypes/express/src/console/script.js on lines 287..290
                  prototypes/express/src/console/script.js on lines 291..294

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 68.

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

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

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

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

                  Refactorings

                  Further Reading

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

                    ctx.moveTo(
                      s[p + 'x'] + v.x * s[p + 'size'],
                      s[p + 'y'] + v.y * s[p + 'size']
                    );
                  Severity: Major
                  Found in prototypes/express/src/console/script.js and 4 other locations - About 1 hr to fix
                  prototypes/express/src/console/script.js on lines 217..220
                  prototypes/express/src/console/script.js on lines 221..224
                  prototypes/express/src/console/script.js on lines 236..239
                  prototypes/express/src/console/script.js on lines 291..294

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 68.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  function writeFile(name, data, path) {
                    var path = (path || "") + name;
                  
                    process.stdout.write('\x1B[1m\x1B[36m>\x1B[35m>\x1B[39m\x1B[22m ' + path);
                    fs.writeFileSync(path, data);
                  Severity: Major
                  Found in prototypes/shreder/lib/tools.js and 1 other location - About 1 hr to fix
                  prototypes/blender/lib/tools.js on lines 9..15

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 68.

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

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

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

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

                  Refactorings

                  Further Reading

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

                    ctx.lineTo(
                      t[p + 'x'] - v.x * t[p + 'size'],
                      t[p + 'y'] - v.y * t[p + 'size']
                    );
                  Severity: Major
                  Found in prototypes/express/src/console/script.js and 4 other locations - About 1 hr to fix
                  prototypes/express/src/console/script.js on lines 217..220
                  prototypes/express/src/console/script.js on lines 221..224
                  prototypes/express/src/console/script.js on lines 287..290
                  prototypes/express/src/console/script.js on lines 291..294

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 68.

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

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

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

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

                  Refactorings

                  Further Reading

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

                    ctx.moveTo(
                      s[p + 'x'] + v.x * s[p + 'size'],
                      s[p + 'y'] + v.y * s[p + 'size']
                    );
                  Severity: Major
                  Found in prototypes/express/src/console/script.js and 4 other locations - About 1 hr to fix
                  prototypes/express/src/console/script.js on lines 221..224
                  prototypes/express/src/console/script.js on lines 236..239
                  prototypes/express/src/console/script.js on lines 287..290
                  prototypes/express/src/console/script.js on lines 291..294

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 68.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  function writeFile(name, data, path) {
                    var path = (path || "") + name;
                  
                    process.stdout.write('\x1B[1m\x1B[36m>\x1B[35m>\x1B[39m\x1B[22m ' + path);
                    fs.writeFileSync(path, data);
                  Severity: Major
                  Found in prototypes/blender/lib/tools.js and 1 other location - About 1 hr to fix
                  prototypes/shreder/lib/tools.js on lines 9..15

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 68.

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

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

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

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

                  Refactorings

                  Further Reading

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

                    ctx.lineTo(
                      t[p + 'x'] - v2.x * t[p + 'size'],
                      t[p + 'y'] - v2.y * t[p + 'size']
                    );
                  Severity: Major
                  Found in prototypes/express/src/console/script.js and 4 other locations - About 1 hr to fix
                  prototypes/express/src/console/script.js on lines 217..220
                  prototypes/express/src/console/script.js on lines 221..224
                  prototypes/express/src/console/script.js on lines 236..239
                  prototypes/express/src/console/script.js on lines 287..290

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 68.

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

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

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

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

                  Refactorings

                  Further Reading

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

                            } else {
                              if (λ > λ_) {
                                if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;
                              } else {
                                if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;
                  Severity: Major
                  Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 1 hr to fix
                  lib/graph-printer/old/bower_components/d3/d3.js on lines 2945..2951

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 68.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  function requireflx() {
                    return b.variableDeclaration("var", [
                      b.variableDeclarator(b.identifier("flx"), b.callExpression(
                        b.identifier("require"), // Anonymize the function expression.
                        [b.literal("./lib/flx")]
                  Severity: Major
                  Found in prototypes/shreder/lib/builders.js and 1 other location - About 1 hr to fix
                  lib/js-printer/builders.js on lines 7..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 68.

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

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

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

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

                  Refactorings

                  Further Reading

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

                          if (antimeridian) {
                            if (λ < λ_) {
                              if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;
                            } else {
                              if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;
                  Severity: Major
                  Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 1 hr to fix
                  lib/graph-printer/old/bower_components/d3/d3.js on lines 2955..2961

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 68.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  function requireflx() {
                    return b.variableDeclaration('var', [
                        b.variableDeclarator(b.identifier('flx'), b.callExpression(
                            b.identifier('require'), // Anonymize the function expression.
                            [b.literal('flx')]
                  Severity: Major
                  Found in lib/js-printer/builders.js and 1 other location - About 1 hr to fix
                  prototypes/shreder/lib/builders.js on lines 38..45

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 68.

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

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

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

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

                  Refactorings

                  Further Reading

                  Function addCombinator has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function addCombinator( matcher, combinator, base ) {
                      var dir = combinator.dir,
                          checkNonElements = base && dir === "parentNode",
                          doneName = done++;
                  
                  
                  Severity: Minor
                  Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix
                    Severity
                    Category
                    Status
                    Source
                    Language