mar10/fancytree

View on GitHub

Showing 700 of 700 total issues

Avoid too many return statements within this function.
Open

        return false;
Severity: Major
Found in lib/jquery.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

              return true;
    Severity: Major
    Found in lib/qunit.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                          return results;
      Severity: Major
      Found in lib/jquery.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return compare & 4 ? -1 : 1;
        Severity: Major
        Found in lib/jquery.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return this.each( function( i ) {
                      var val;
          
                      if ( this.nodeType !== 1 ) {
                          return;
          Severity: Major
          Found in lib/jquery.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                      return value;
            Severity: Major
            Found in lib/qunit.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                                  return results;
              Severity: Major
              Found in lib/jquery.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return JSON.stringify(decycledShallowClone(value), null, 2);
                Severity: Major
                Found in lib/qunit.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                    if (resultsLen === 0) return resolve(noResults);
                  Severity: Major
                  Found in lib/qunit.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                              return this.diffLineMode(text1, text2, deadline);
                    Severity: Major
                    Found in lib/qunit.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return this.diffBisect(text1, text2, deadline);
                      Severity: Major
                      Found in lib/qunit.js - About 30 mins to fix

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

                                          for (var i = resultsLen - 1; i >= 0; --i) {
                                            results[i] = q.poll();
                                          }
                        Severity: Minor
                        Found in lib/qunit.js and 1 other location - About 30 mins to fix
                        lib/qunit.js on lines 4854..4856

                        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

                                      for (var i = resultsLen - 1; i >= 0; --i) {
                                        results[i] = q.poll();
                                      }
                        Severity: Minor
                        Found in lib/qunit.js and 1 other location - About 30 mins to fix
                        lib/qunit.js on lines 5010..5012

                        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

                        Avoid too many return statements within this function.
                        Open

                                  return diffsA.concat([[DIFF_EQUAL, midCommon]], diffsB);
                        Severity: Major
                        Found in lib/qunit.js - About 30 mins to fix

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

                                          case "moveDown":
                                              refNode = node.getNextSibling();
                                              if (refNode) {
                                                  node.moveTo(refNode, "after");
                                                  node.setActive();
                          Severity: Minor
                          Found in src/jquery.fancytree.js and 1 other location - About 30 mins to fix
                          src/jquery.fancytree.js on lines 2949..2955

                          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

                                          case "moveUp":
                                              refNode = node.getPrevSibling();
                                              if (refNode) {
                                                  node.moveTo(refNode, "before");
                                                  node.setActive();
                          Severity: Minor
                          Found in src/jquery.fancytree.js and 1 other location - About 30 mins to fix
                          src/jquery.fancytree.js on lines 2956..2962

                          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

                              else if (doclet.kind === 'typedef' && doclet.type && doclet.type.names &&
                                  doclet.type.names.length) {
                          Severity: Minor
                          Found in bin/jsdoc3-moogle/publish.js and 1 other location - About 30 mins to fix
                          bin/jsdoc3-moogle/publish.js on lines 71..72

                          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

                              else if (doclet.kind === 'namespace' && doclet.meta && doclet.meta.code &&
                                  doclet.meta.code.type && doclet.meta.code.type.match(/[Ff]unction/)) {
                          Severity: Minor
                          Found in bin/jsdoc3-moogle/publish.js and 1 other location - About 30 mins to fix
                          bin/jsdoc3-moogle/publish.js on lines 60..61

                          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

                                  this.log = options.log || Function.prototype.bind.call(console$1.log, console$1);
                          Severity: Minor
                          Found in lib/qunit.js and 1 other location - About 30 mins to fix
                          lib/qunit.js on lines 4213..4213

                          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

                                  this.log = options.log || Function.prototype.bind.call(console$1.log, console$1);
                          Severity: Minor
                          Found in lib/qunit.js and 1 other location - About 30 mins to fix
                          lib/qunit.js on lines 3888..3888

                          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