etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

Avoid too many return statements within this function.
Open

                return results;
Severity: Major
Found in test-set/gifsockets-server-master/public/js/jquery.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return rootjQuery.ready( selector );
    Severity: Major
    Found in test-set/gifsockets-server-master/public/js/jquery.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                      return ( context || rootjQuery ).find( selector );
      Severity: Major
      Found in test-set/gifsockets-server-master/public/js/jquery.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                        return this.constructor( context ).find( selector );
        Severity: Major
        Found in test-set/gifsockets-server-master/public/js/jquery.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return ret == null ?
                          undefined :
                          ret;
          Severity: Major
          Found in test-set/gifsockets-server-master/public/js/jquery.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                          return new this.logAttraction(c);

              Avoid too many return statements within this function.
              Open

                      return this;

                Avoid too many return statements within this function.
                Open

                            return false;

                  Avoid too many return statements within this function.
                  Open

                            return true;

                    Avoid too many return statements within this function.
                    Open

                                  return new this.logAttraction_degreeDistributed(c);

                      Avoid too many return statements within this function.
                      Open

                                    return new this.linAttraction(c);

                        Avoid too many return statements within this function.
                        Open

                                      return new this.linAttraction_massDistributed(c);

                          Avoid too many return statements within this function.
                          Open

                                      return true;

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

                                  gl.drawArrays(
                                    gl.TRIANGLES,
                                    params.start || 0,
                                    params.count || (data.length / this.ATTRIBUTES)
                                  );
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.arrow.js on lines 293..297
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.def.js on lines 181..185
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.fast.js on lines 86..90
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.nodes.fast.js on lines 94..98

                            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

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

                                  var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy);
                            Severity: Minor
                            Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 30 mins to fix
                            lib/graph-printer/old/bower_components/d3/d3.js on lines 3961..3961

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

                                  gl.drawArrays(
                                    gl.TRIANGLES,
                                    params.start || 0,
                                    params.count || (data.length / this.ATTRIBUTES)
                                  );
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.def.js on lines 181..185
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.fast.js on lines 86..90
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.nodes.def.js on lines 114..118
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.nodes.fast.js on lines 94..98

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

                                  gl.drawArrays(
                                    gl.TRIANGLES,
                                    params.start || 0,
                                    params.count || (data.length / this.ATTRIBUTES)
                                  );
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.arrow.js on lines 293..297
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.fast.js on lines 86..90
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.nodes.def.js on lines 114..118
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.nodes.fast.js on lines 94..98

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

                                  gl.drawArrays(
                                    gl.LINES,
                                    params.start || 0,
                                    params.count || (data.length / this.ATTRIBUTES)
                                  );
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.arrow.js on lines 293..297
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.def.js on lines 181..185
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.nodes.def.js on lines 114..118
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.nodes.fast.js on lines 94..98

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

                                  gl.drawArrays(
                                    gl.POINTS,
                                    params.start || 0,
                                    params.count || (data.length / this.ATTRIBUTES)
                                  );
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.arrow.js on lines 293..297
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.def.js on lines 181..185
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.edges.fast.js on lines 86..90
                            prototypes/express/src/console/sigma/src/renderers/webgl/sigma.webgl.nodes.def.js on lines 114..118

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

                                var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
                            Severity: Minor
                            Found in lib/graph-printer/old/bower_components/d3/d3.js and 2 other locations - About 30 mins to fix
                            lib/graph-printer/old/bower_components/d3/d3.js on lines 2876..2876
                            lib/graph-printer/old/bower_components/d3/d3.js on lines 8037..8037

                            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

                            Severity
                            Category
                            Status
                            Source
                            Language