GuilhermeStracini/TCC-SENAC

View on GitHub

Showing 390 of 605 total issues

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

function xPathStep(nodes, steps, step, input, ctx) {
Severity: Minor
Found in Src/scripts/xpath.js - About 35 mins to fix

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

    Spry.Utils.loadURL = function(method, url, async, callback, opts)
    Severity: Minor
    Found in Src/scripts/sprydata.js - About 35 mins to fix

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

      function makeFunctionCallExpr2(name, pareno, arg1, args, parenc) {
      Severity: Minor
      Found in Src/scripts/xpath.js - About 35 mins to fix

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

          request: function(form, options) {
            form = $(form), options = Object.clone(options || { });
        
            var params = options.parameters, action = form.readAttribute('action') || '';
            if (action.blank()) action = window.location.href;
        Severity: Minor
        Found in Src/scripts/prototype.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 ValidationTextField has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

        Spry.Widget.ValidationTextField = function(element, type, options)
        {
            type = Spry.Widget.Utils.firstValid(type, "none");
            if (typeof type != 'string') {
                this.showError('The second parameter in the constructor should be the validation type, the options are the third parameter.');
        Severity: Minor
        Found in Src/scripts/spryvalidationtextfield.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 debugOut has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

        Spry.Debug.debugOut = function(str, bgColor)
        {
            if (!Spry.Debug.debugWindow)
            {
                Spry.Debug.createDebugWindow();
        Severity: Minor
        Found in Src/scripts/sprydata.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 lang has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

          'lang': function(ctx) {
            assert(this.args.length == 1);
            var lang = this.args[0].evaluate(ctx).stringValue();
            var xmllang;
            var n = ctx.node;
        Severity: Minor
        Found in Src/scripts/xpath.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 $ has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

        Spry.$ = function(element)
        {
            if (arguments.length > 1)
            {
                for (var i = 0, elements = [], length = arguments.length; i < length; i++)
        Severity: Minor
        Found in Src/scripts/sprydata.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 _children has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

          _children: function(element, children) {
            if(children.tagName) {
              element.appendChild(children);
              return;
            }
        Severity: Minor
        Found in Src/scripts/builder.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 extractRequestOptions has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

        Spry.Utils.loadURL.Request.prototype.extractRequestOptions = function(opts, undefineRequestProps)
        {
            if (!opts)
                return;
        
        
        Severity: Minor
        Found in Src/scripts/sprydata.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 attach has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

            attach: function(rgn, node, value)
            {
                if (value)
                {
                    rowNumAttr = node.attributes.getNamedItem("spryevenrownumber");
        Severity: Minor
        Found in Src/scripts/sprydata.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 0;
        Severity: Major
        Found in Src/scripts/prototype.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                                  return ( diff % first == 0 && diff / first >= 0 );
          Severity: Major
          Found in Src/scripts/prototype.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return element;
            Severity: Major
            Found in Src/scripts/prototype.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                              return false;
              Severity: Major
              Found in Src/scripts/spryvalidationtextfield.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                                        return diff == 0;
                Severity: Major
                Found in Src/scripts/prototype.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      if (!responder) return element;
                  Severity: Major
                  Found in Src/scripts/prototype.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                            return true;
                    Severity: Major
                    Found in Src/scripts/prototype.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                              return false;
                      Severity: Major
                      Found in Src/scripts/spryvalidationtextfield.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                        return date;
                        Severity: Major
                        Found in Src/scripts/spryvalidationtextfield.js - About 30 mins to fix
                          Severity
                          Category
                          Status
                          Source
                          Language