erikroyall/hilo

View on GitHub

Showing 179 of 292 total issues

Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    function condense(unmatched, map, filter, context, xml) {
Severity: Minor
Found in src/sizzle.js - About 35 mins to fix

    Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            superMatcher = function(seed, context, xml, results, expandContext) {
    Severity: Minor
    Found in src/sizzle.js - About 35 mins to fix

      Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              "CHILD": function(type, what, argument, first, last) {
      Severity: Minor
      Found in build/hilo-legacy.js - About 35 mins to fix

        Function Animation has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          function Animation (el, css, timing, onanimationstart, onanimationend) {
        Severity: Minor
        Found in src/anim.js - About 35 mins to fix

          Function animateCss has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            function animateCss (el, prop, timing, from, to) {
          Severity: Minor
          Found in src/anim.js - About 35 mins to fix

            Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    superMatcher = function(seed, context, xml, results, expandContext) {
            Severity: Minor
            Found in build/hilo-legacy.js - About 35 mins to fix

              Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  function condense(unmatched, map, filter, context, xml) {
              Severity: Minor
              Found in build/hilo-legacy.js - About 35 mins to fix

                Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        "CHILD": function(type, what, argument, first, last) {
                Severity: Minor
                Found in src/sizzle.js - About 35 mins to fix

                  Function ifContains has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      ifContains: function (tw) {
                        var ifString = this.con.split(tw).length === 1 ? false : true;
                        if (typeof tw === "string" && typeof this.con === "object" && this.con.length) {
                  
                        } else if (typeof tw === "string" && typeof this.con === "string") {
                  Severity: Minor
                  Found in src/test.js - About 35 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function toPrimitive has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                    var toPrimitive = function toPrimitive (input) {
                      var val, valueOf, toString;
                  
                      if (isPrimitive(input)) {
                        return input;
                  Severity: Minor
                  Found in src/util.js - About 35 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Avoid too many return statements within this function.
                  Open

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

                    Avoid too many return statements within this function.
                    Open

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

                      Avoid too many return statements within this function.
                      Open

                            return select(selector.replace(rtrim, "$1"), context, results, seed);
                      Severity: Major
                      Found in src/sizzle.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return new Dom(input);
                        Severity: Major
                        Found in build/hilo.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return win.Hilo;
                          Severity: Major
                          Found in src/core.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return new Dom(input);
                            Severity: Major
                            Found in src/core.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

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

                                Avoid too many return statements within this function.
                                Open

                                      return win.Hilo;
                                Severity: Major
                                Found in build/hilo.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

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

                                    Avoid too many return statements within this function.
                                    Open

                                            return a.compareDocumentPosition ? -1 : 1;
                                    Severity: Major
                                    Found in src/sizzle.js - About 30 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language