suitmedia/suitcoda

View on GitHub

Showing 784 of 784 total issues

Consider simplifying this complex logical expression.
Open

                        } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                            diff = cache[1];

                        // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                        } else {
Severity: Critical
Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

                if ( start && start[ 3 ] !== unit ) {
                    // Trust units reported by jQuery.css
                    unit = unit || start[ 3 ];
    
                    // Make sure we update the tween properties later on
    Severity: Critical
    Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

                              } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                  diff = cache[1];
      
                              // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                              } else {
      Severity: Critical
      Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

        Function Component has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                        YSLOW.Component = function(r, s, u, v) {
                            var t = v && v.obj,
                                q = (v && v.comp) || {};
                            this.url = r;
                            this.type = s;
        Severity: Minor
        Found in performance/yslow.js - About 1 hr to fix

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

                              lint: function(A, C, r) {
                                  var u, x, s, z, v, y = C.inline,
                                      B = (y && y.styles) || [],
                                      t = (y && y.scripts) || [],
                                      q = C.getComponentsByType(r.types),
          Severity: Minor
          Found in performance/yslow.js - About 1 hr to fix

            Method handle has 33 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function handle(ProjectWatcher $event)
                {
                    $urlsFromDatabase = $event->project->urls->pluck('url');
                    if (is_string($urlsFromDatabase)) {
                        $urlsFromDatabase = (array)$urlsFromDatabase;
            Severity: Minor
            Found in app/Listeners/CrawlerTheWebsite.php - About 1 hr to fix

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

                                      $(window).load(function() {
                                          Plugin.prototype._animateBar.apply(this, [paramsAnim]);
                                          if (opt.labelNumCount) {
                                              Plugin.prototype._labelNumCounter.apply(this, [paramsCount]);
                                          }
              Severity: Major
              Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js and 2 other locations - About 1 hr to fix
              _frontend/assets/js/vendor/jquery-barIndicator.min.js on lines 281..286
              _frontend/assets/js/vendor/jquery-barIndicator.min.js on lines 289..294

              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 61.

              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 3 locations. Consider refactoring.
              Open

                                      $(document).on(event, function() {
                                          Plugin.prototype._animateBar.apply(this, [paramsAnim]);
                                          if (opt.labelNumCount) {
                                              Plugin.prototype._labelNumCounter.apply(this, [paramsCount]);
                                          }
              Severity: Major
              Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js and 2 other locations - About 1 hr to fix
              _frontend/assets/js/vendor/jquery-barIndicator.min.js on lines 274..279
              _frontend/assets/js/vendor/jquery-barIndicator.min.js on lines 289..294

              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 61.

              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 3 locations. Consider refactoring.
              Open

                                  setTimeout(function() {
                                      Plugin.prototype._animateBar.apply(this, [paramsAnim]);
                                      if (opt.labelNumCount) {
                                          Plugin.prototype._labelNumCounter.apply(this, [paramsCount]);
                                      }
              Severity: Major
              Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js and 2 other locations - About 1 hr to fix
              _frontend/assets/js/vendor/jquery-barIndicator.min.js on lines 274..279
              _frontend/assets/js/vendor/jquery-barIndicator.min.js on lines 281..286

              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 61.

              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

                                  colors: {
                                      doc: "#8963df",
                                      redirect: "#FC8C8C",
                                      iframe: "#FFDFDF",
                                      xhr: "#89631f",
              Severity: Major
              Found in performance/yslow.js and 1 other location - About 1 hr to fix
              performance/yslow.js on lines 1545..1557

              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 61.

              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

                                      if (YSLOW.doc) {
                                          if (YSLOW.doc.view_names && YSLOW.doc.view_names.grade) {
                                              M = YSLOW.doc.view_names.grade
                                          }
                                      }
              Severity: Major
              Found in performance/yslow.js and 1 other location - About 1 hr to fix
              performance/yslow.js on lines 5470..5474

              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 61.

              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

                                  prettyTypes: {
                                      image: "Image",
                                      doc: "HTML/Text",
                                      cssimage: "CSS Image",
                                      css: "Stylesheet File",
              Severity: Major
              Found in performance/yslow.js and 1 other location - About 1 hr to fix
              performance/yslow.js on lines 4800..4812

              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 61.

              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

              FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
                  'use strict';
              
                  // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
                  if (eventTarget.nodeType === Node.TEXT_NODE) {
              Severity: Major
              Found in _frontend/dev/js/vendor/fastclick.js and 1 other location - About 1 hr to fix
              _frontend/assets/js/vendor/fastclick.min.js on lines 347..356

              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 61.

              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

              FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
                  'use strict';
              
                  // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
                  if (eventTarget.nodeType === Node.TEXT_NODE) {
              Severity: Major
              Found in _frontend/assets/js/vendor/fastclick.min.js and 1 other location - About 1 hr to fix
              _frontend/dev/js/vendor/fastclick.js on lines 347..356

              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 61.

              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

                                      if (YSLOW.doc) {
                                          if (YSLOW.doc.view_names && YSLOW.doc.view_names.stats) {
                                              s = YSLOW.doc.view_names.stats
                                          }
                                      }
              Severity: Major
              Found in performance/yslow.js and 1 other location - About 1 hr to fix
              performance/yslow.js on lines 5382..5386

              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 61.

              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

              Function updateToolbarSelection has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                                  updateToolbarSelection: function() {
                                      var q, r, s;
                                      switch (this.curButtonId) {
                                          case "ysCompsButton":
                                          case "ysPerfButton":
              Severity: Minor
              Found in performance/yslow.js - About 1 hr to fix

                Function addCDN has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                    addCDN: function(z) {
                                        var t, r, v = this,
                                            x = document,
                                            A = v.yscontext,
                                            B = YSLOW.util.Preference,
                Severity: Minor
                Found in performance/yslow.js - About 1 hr to fix

                  Function fixCloneNodeIssues has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function fixCloneNodeIssues( src, dest ) {
                      var nodeName, e, data;
                  
                      // We do not need to do anything for non-Elements
                      if ( dest.nodeType !== 1 ) {
                  Severity: Minor
                  Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                    Function removeClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        removeClass: function( value ) {
                            var classes, elem, cur, clazz, j, finalValue,
                                i = 0,
                                len = this.length,
                                proceed = arguments.length === 0 || typeof value === "string" && value;
                    Severity: Minor
                    Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                      Function addClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          addClass: function( value ) {
                              var classes, elem, cur, clazz, j, finalValue,
                                  i = 0,
                                  len = this.length,
                                  proceed = typeof value === "string" && value;
                      Severity: Minor
                      Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix
                        Severity
                        Category
                        Status
                        Source
                        Language