fiuba/alfred

View on GitHub

Showing 339 of 654 total issues

Avoid too many return statements within this function.
Open

            return ret;
Severity: Major
Found in public/javascripts/jquery-1.9.0.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

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

      Avoid too many return statements within this function.
      Open

              return jQuery.makeArray( selector, this );
      Severity: Major
      Found in public/javascripts/jquery-1.9.0.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

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

          Avoid too many return statements within this function.
          Open

                              return results;
          Severity: Major
          Found in public/javascripts/jquery-1.9.0.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 public/javascripts/jquery-1.9.0.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 public/javascripts/jquery-1.9.0.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return rootjQuery.ready( selector );
                Severity: Major
                Found in public/javascripts/jquery-1.9.0.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return ret == null ?
                                  undefined :
                                  ret;
                  Severity: Major
                  Found in public/javascripts/jquery-1.9.0.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return a.compareDocumentPosition ? -1 : 1;
                    Severity: Major
                    Found in public/javascripts/jquery-1.9.0.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return this;
                      Severity: Major
                      Found in public/javascripts/jquery-1.9.0.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

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

                          Avoid too many return statements within this function.
                          Open

                                  return i ?
                                      // Do a sibling check if the nodes have a common ancestor
                                      siblingCheck( ap[i], bp[i] ) :
                          
                                      // Otherwise nodes in our document sort first
                          Severity: Major
                          Found in public/javascripts/jquery-1.9.0.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return true;
                            Severity: Major
                            Found in public/javascripts/jquery-ui/jquery-ui.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

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

                                Function init has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                EditableGrid.prototype.init = function (name, config)
                                {
                                    if (typeof name != "string" || (typeof config != "object" && typeof config != "undefined")) {
                                        alert("The EditableGrid constructor takes two arguments:\n- name (string)\n- config (object)\n\nGot instead " + (typeof name) + " and " + (typeof config) + ".");
                                    };
                                Severity: Minor
                                Found in public/javascripts/editablegrid-2.0.1.js - About 25 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 getColumnIndex has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                EditableGrid.prototype.getColumnIndex = function(columnIndexOrName)
                                {
                                    if (typeof columnIndexOrName == "undefined" || columnIndexOrName === "") return -1;
                                
                                    // TODO: problem because the name of a column could be a valid index, and we cannot make the distinction here!
                                Severity: Minor
                                Found in public/javascripts/editablegrid-2.0.1.js - About 25 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 _renderHeaders has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                EditableGrid.prototype._renderHeaders = function() 
                                {
                                    with (this) {
                                        var rows = tHead.rows;
                                        for (var i = 0; i < 1 /*rows.length*/; i++) {
                                Severity: Minor
                                Found in public/javascripts/editablegrid-2.0.1.js - About 25 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 getTypedValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                EditableGrid.prototype.getTypedValue = function(columnIndex, cellValue) 
                                {
                                    var colType = this.getColumnType(columnIndex);
                                    if (colType == 'boolean') cellValue = (cellValue && cellValue != 0 && cellValue != "false") ? true : false;
                                    if (colType == 'integer') { cellValue = parseInt(cellValue, 10); } 
                                Severity: Minor
                                Found in public/javascripts/editablegrid-2.0.1.js - About 25 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

                                Severity
                                Category
                                Status
                                Source
                                Language