suitmedia/suitcoda

View on GitHub

Showing 784 of 784 total issues

File ResultReader.php has 257 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace Suitcoda\Supports;

use Suitcoda\Model\Issue;
Severity: Minor
Found in app/Supports/ResultReader.php - About 2 hrs to fix

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

                        lint: function(B, E, s) {
                            var u, y, t, v, A, x, D, C = (E.inline && E.inline.styles) || [],
                                r = E.getComponentsByType("css"),
                                w = [],
                                q = 0,
    Severity: Major
    Found in performance/yslow.js - About 2 hrs to fix

      Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  var init = function () {
      
                      function drawGraph ( graph, dataTitle, dataSeries, dataXAxis) {
                          var option = {
                              title: {
      Severity: Major
      Found in _frontend/assets/js/main.min.js - About 2 hrs to fix

        Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    var init = function () {
        
                        function drawGraph ( graph, dataTitle, dataSeries, dataXAxis) {
                            var option = {
                                title: {
        Severity: Major
        Found in _frontend/dev/js/main.js - About 2 hrs to fix

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          gulp.task('css_watch', function () {
              var srcToWatch = paths.build + 'css/*.css';
          
              return gulp
                  .src( srcToWatch )
          Severity: Major
          Found in _frontend/gulpfile.js and 1 other location - About 2 hrs to fix
          _frontend/gulpfile.js on lines 56..63

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

          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

                  for ( var l = 0; l < w3ResultError.errorMsg.length; l++ ) {
                      resultHTMLLinter.checking.push({
                          type    : 'Error',
                          desc    : w3ResultError.errorMsg[l],
                          line    : w3ResultError.errorLine[l]
          Severity: Major
          Found in linter/htmlHorseman.js and 1 other location - About 2 hrs to fix
          linter/htmlHorseman.js on lines 171..177

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

          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

          gulp.task('js_watch', function () {
              var srcToWatch = paths.build + 'js/*.js';
          
              return gulp
                  .src( srcToWatch )
          Severity: Major
          Found in _frontend/gulpfile.js and 1 other location - About 2 hrs to fix
          _frontend/gulpfile.js on lines 42..49

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

          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 ((t.PAGE.totalObjCountPrimed[w]) !== undefined) {
                                          v += '<item type="' + w + '" count="' + t.PAGE.totalObjCountPrimed[w] + '" size="' + t.PAGE.totalObjSizePrimed[w] + '" />'
                                      }
          Severity: Major
          Found in performance/yslow.js and 1 other location - About 2 hrs to fix
          performance/yslow.js on lines 5913..5915

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

          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

                  for ( var k = 0; k < w3ResultWarning.warningMsg.length; k++ ) {
                      resultHTMLLinter.checking.push({
                          type    : 'Warning',
                          desc    : w3ResultWarning.warningMsg[k],
                          line    : w3ResultWarning.warningLine[k]
          Severity: Major
          Found in linter/htmlHorseman.js and 1 other location - About 2 hrs to fix
          linter/htmlHorseman.js on lines 163..169

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

          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 ((t.PAGE.totalObjCount[w]) !== undefined) {
                                          u += '<item type="' + w + '" count="' + t.PAGE.totalObjCount[w] + '" size="' + t.PAGE.totalObjSize[w] + '" />'
                                      }
          Severity: Major
          Found in performance/yslow.js and 1 other location - About 2 hrs to fix
          performance/yslow.js on lines 5910..5912

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

          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 _setAvgMilestone has 53 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  _setAvgMilestone: function(par) {
                      if (par) {
                          var that = par.that;
                          var $el = par.$el;
                          var opt = that.opt;
          Severity: Major
          Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js - About 2 hrs to fix

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                                    if (z || w) {
                                        if (z) {
                                            v(z.getElementsByTagName("link"), "head")
                                        }
                                        if (w) {
            Severity: Major
            Found in performance/yslow.js and 1 other location - About 2 hrs to fix
            performance/yslow.js on lines 6180..6189

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

            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 (s || q) {
                                        if (s) {
                                            r(s.getElementsByTagName("script"), "head")
                                        }
                                        if (q) {
            Severity: Major
            Found in performance/yslow.js and 1 other location - About 2 hrs to fix
            performance/yslow.js on lines 6095..6104

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

            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 setSplashView has 51 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                                setSplashView: function(r, s, t) {
                                    var w, v = "Grade your web pages with YSlow",
                                        x = "YSlow gives you:",
                                        u = "<li>Grade based on the performance (you can define your own rules)</li><li>Summary of the Components in the page</li><li>Chart with statistics</li><li>Tools including Smush.It and JSLint</li>",
                                        q = "Learn more about YSlow and YDN";
            Severity: Major
            Found in performance/yslow.js - About 2 hrs to fix

              Function saveRuleset has 51 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                                  saveRuleset: function(y, r) {
                                      var t, s, v, q, u, z, B, A, x = {},
                                          w = {};
                                      if (r) {
                                          x.custom = true;
              Severity: Major
              Found in performance/yslow.js - About 2 hrs to fix

                Function remove has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    remove: function( elem, types, handler, selector, mappedTypes ) {
                        var j, handleObj, tmp,
                            origCount, t, events,
                            special, handlers, type,
                            namespaces, origType,
                Severity: Major
                Found in _frontend/assets/js/vendor/jquery.min.js - About 2 hrs to fix

                  Function remove has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      remove: function( elem, types, handler, selector, mappedTypes ) {
                          var j, handleObj, tmp,
                              origCount, t, events,
                              special, handlers, type,
                              namespaces, origType,
                  Severity: Major
                  Found in _frontend/dev/js/vendor/jquery.js - About 2 hrs to fix

                    Method doRequest has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function doRequest($url, $try = null)
                        {
                            if (is_null($try)) {
                                $try = $this->retry;
                            }
                    Severity: Major
                    Found in app/Supports/CrawlerUrl.php - About 2 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                                      if ( ( mappedTypes || origType === handleObj.origType ) &&
                                          ( !handler || handler.guid === handleObj.guid ) &&
                                          ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                          ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                          handlers.splice( j, 1 );
                      Severity: Critical
                      Found in _frontend/assets/js/vendor/jquery.min.js - About 2 hrs to fix

                        Function onTouchEnd has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        FastClick.prototype.onTouchEnd = function(event) {
                            'use strict';
                            var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
                        
                            if (!this.trackingClick) {
                        Severity: Minor
                        Found in _frontend/assets/js/vendor/fastclick.min.js - About 2 hrs to fix
                          Severity
                          Category
                          Status
                          Source
                          Language