suitmedia/suitcoda

View on GitHub

Showing 552 of 784 total issues

Function view has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                YSLOW.view = function(r, w) {
                    var u, t, v, q, s;
                    this.panel_doc = r.document;
                    this.buttonViews = {};
                    this.curButtonId = "";
Severity: Major
Found in performance/yslow.js - About 3 hrs to fix

    Function format has 90 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        sprintf.format = function(parse_tree, argv) {
            var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i, k, match, pad, pad_character, pad_length, is_positive = true, sign = ""
            for (i = 0; i < tree_length; i++) {
                node_type = get_type(parse_tree[i])
                if (node_type === "string") {
    Severity: Major
    Found in _frontend/assets/js/vendor/sprintf.min.js - About 3 hrs to fix

      Function format has 90 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          sprintf.format = function(parse_tree, argv) {
              var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i, k, match, pad, pad_character, pad_length, is_positive = true, sign = ""
              for (i = 0; i < tree_length; i++) {
                  node_type = get_type(parse_tree[i])
                  if (node_type === "string") {
      Severity: Major
      Found in _frontend/dev/js/vendor/sprintf.js - About 3 hrs to fix

        Function expandCollapseComponentType has 89 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                            expandCollapseComponentType: function(K, H, u, q, s) {
                                var B, F, C, J, w, D, y, E, t, G, z, I, x, A, r = this.hasClassName,
                                    v = {
                                        expand: 0,
                                        collapse: 0
        Severity: Major
        Found in performance/yslow.js - About 3 hrs to fix

          Function check has 89 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function check(url) {
          
              var Horseman    = require('node-horseman'),
                  horseman    = new Horseman();
          
          
          Severity: Major
          Found in socmed/twittercard.js - About 3 hrs to fix

            Function trigger has 89 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                trigger: function( event, data, elem, onlyHandlers ) {
                    var handle, ontype, cur,
                        bubbleType, special, tmp, i,
                        eventPath = [ elem || document ],
                        type = hasOwn.call( event, "type" ) ? event.type : event,
            Severity: Major
            Found in _frontend/assets/js/vendor/jquery.min.js - About 3 hrs to fix

              Function trigger has 89 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  trigger: function( event, data, elem, onlyHandlers ) {
                      var handle, ontype, cur,
                          bubbleType, special, tmp, i,
                          eventPath = [ elem || document ],
                          type = hasOwn.call( event, "type" ) ? event.type : event,
              Severity: Major
              Found in _frontend/dev/js/vendor/jquery.js - About 3 hrs to fix

                Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function Animation( elem, properties, options ) {
                    var result,
                        stopped,
                        index = 0,
                        length = animationPrefilters.length,
                Severity: Major
                Found in _frontend/assets/js/vendor/jquery.min.js - About 3 hrs to fix

                  Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function Animation( elem, properties, options ) {
                      var result,
                          stopped,
                          index = 0,
                          length = animationPrefilters.length,
                  Severity: Major
                  Found in _frontend/dev/js/vendor/jquery.js - About 3 hrs to fix

                    ResultReaderTest has 28 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class ResultReaderTest extends TestCase
                    {
                        use DatabaseTransactions;
                    
                        /**
                    Severity: Minor
                    Found in tests/Supports/ResultReaderTest.php - About 3 hrs to fix

                      Function genComponentsTable has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                          genComponentsTable: function(r, C, v) {
                                              var A, y, B, z, u = {
                                                      type: "TYPE",
                                                      size: "SIZE<br> (KB)",
                                                      gzip: "GZIP<br> (KB)",
                      Severity: Major
                      Found in performance/yslow.js - About 3 hrs to fix

                        Function lint has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                            lint: function(H, s, q) {
                                                var t, x, F, w, y, z, G, E = [],
                                                    C = [],
                                                    D = 0,
                                                    B = 0,
                        Severity: Major
                        Found in performance/yslow.js - About 3 hrs to fix

                          Function rulesetEditUpdateTab has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                              rulesetEditUpdateTab: function(I, q, C, r, A) {
                                                  var s, B, F, u, z, G, D, x, t, y, H, E, v, w = q.parentNode.parentNode.parentNode;
                                                  if (w && w.id === "settingsDiv" && C.custom === true) {
                                                      s = w.firstChild;
                                                      B = s.nextSibling;
                          Severity: Major
                          Found in performance/yslow.js - About 3 hrs to fix

                            Function componentSortCallback has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                                componentSortCallback: function(q, y) {
                                                    var r, t, u, w = "",
                                                        v = "",
                                                        x = YSLOW.renderer.sortBy,
                                                        s = YSLOW.renderer.sortDesc;
                            Severity: Major
                            Found in performance/yslow.js - About 3 hrs to fix

                              Function Sizzle has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function Sizzle( selector, context, results, seed ) {
                                  var match, elem, m, nodeType,
                                      // QSA vars
                                      i, groups, old, nid, newContext, newSelector;
                              
                              
                              Severity: Major
                              Found in _frontend/assets/js/vendor/jquery.min.js - About 3 hrs to fix

                                Function Sizzle has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function Sizzle( selector, context, results, seed ) {
                                    var match, elem, m, nodeType,
                                        // QSA vars
                                        i, groups, old, nid, newContext, newSelector;
                                
                                
                                Severity: Major
                                Found in _frontend/dev/js/vendor/jquery.js - About 3 hrs to fix

                                  Inspection has 26 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class Inspection extends BaseModel
                                  {
                                      const STATUS_WAITING = 0;
                                      const STATUS_ON_PROGRESS = 1;
                                      const STATUS_COMPLETED = 2;
                                  Severity: Minor
                                  Found in app/Model/Inspection.php - About 3 hrs to fix

                                    File CrawlerUrl.php has 291 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php
                                    
                                    namespace Suitcoda\Supports;
                                    
                                    use GuzzleHttp\Client;
                                    Severity: Minor
                                    Found in app/Supports/CrawlerUrl.php - About 3 hrs to fix

                                      Function initRulesetEditForm has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                          initRulesetEditForm: function(I, r, D) {
                                                              var C, F, E, B, G, K, w, J, v, y, q, u, A, s = r.elements,
                                                                  t = "",
                                                                  z = [],
                                                                  x = 0,
                                      Severity: Major
                                      Found in performance/yslow.js - About 2 hrs to fix

                                        Function buildFragment has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            buildFragment: function( elems, context, scripts, selection ) {
                                                var j, elem, contains,
                                                    tmp, tag, tbody, wrap,
                                                    l = elems.length,
                                        
                                        
                                        Severity: Major
                                        Found in _frontend/assets/js/vendor/jquery.min.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language