suitmedia/suitcoda

View on GitHub

Showing 784 of 784 total issues

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/dev/js/vendor/jquery.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/dev/js/vendor/fastclick.js - About 2 hrs to fix

      Function internalRemoveData has 49 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function internalRemoveData( elem, name, pvt ) {
          if ( !jQuery.acceptData( elem ) ) {
              return;
          }
      
      
      Severity: Minor
      Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

        Function internalRemoveData has 49 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function internalRemoveData( elem, name, pvt ) {
            if ( !jQuery.acceptData( elem ) ) {
                return;
            }
        
        
        Severity: Minor
        Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

          Function computeStats has 48 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                              computeStats: function(A) {
                                  var u, z, t, x, B, D, C, s, y, q, v = {},
                                      w = {},
                                      r = 0;
                                  if (!this.component_set) {
          Severity: Minor
          Found in performance/yslow.js - About 1 hr to fix

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

                                        t += '<tr class="type-summary ' + (x ? "expand" : "collapse") + '"><td><a href="javascript:document.ysview.expandCollapseComponentType(document, \'' + B + '\')"><b class="expcol"><b class="exp exph"></b><b class="exp expv"></b><b class="col"></b></b><span class="rowTitle type-' + B + '">' + B + "&nbsp;(" + q + ')</span></a></td><td class="size">' + YSLOW.util.kbSize(s) + "</td><td><!-- GZIP --></td><td></td><td></td><td><!-- HEADERS --></td><td><!-- URL --></td><td><!-- EXPIRES --></td><td><!-- RESPTIME --></td><td><!-- ETAG --></td><td><!-- ACTION--></td></tr>";
            Severity: Major
            Found in performance/yslow.js and 1 other location - About 1 hr to fix
            performance/yslow.js on lines 5271..5271

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

            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 (style == 'vertical') {                        
                                    ml.css({
                                        'bottom':mlPos,
                                        'height':mlHoverRange + 'px',
                                        'margin-bottom': -absolutePull + 'px'
            Severity: Major
            Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js and 1 other location - About 1 hr to fix
            _frontend/assets/js/vendor/jquery-barIndicator.min.js on lines 605..615

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

            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

                                } else if (style == 'horizontal') {
                                    ml.css({
                                        'left':mlPos,
                                        'width':mlHoverRange + 'px',
                                        'margin-left': -absolutePull + 'px'
            Severity: Major
            Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js and 1 other location - About 1 hr to fix
            _frontend/assets/js/vendor/jquery-barIndicator.min.js on lines 595..615

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

            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

                                                    t += '<tr class="type-summary ' + (x ? "expand" : "collapse") + '"><td><a href="javascript:document.ysview.expandCollapseComponentType(document, \'' + B + '\')"><b class="expcol"><b class="exp exph"></b><b class="exp expv"></b><b class="col"></b></b><span class="rowTitle type-' + B + '">' + B + "&nbsp;(" + q + ')</span></a></td><td class="size">' + YSLOW.util.kbSize(s) + "</td><td><!-- GZIP --></td><td></td><td></td><td><!-- HEADERS --></td><td><!-- URL --></td><td><!-- EXPIRES --></td><td><!-- RESPTIME --></td><td><!-- ETAG --></td><td><!-- ACTION--></td></tr>";
            Severity: Major
            Found in performance/yslow.js and 1 other location - About 1 hr to fix
            performance/yslow.js on lines 5287..5287

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

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

                                openDialog: function(K, C, B, x, w, u, F) {
                                    var E, D, G, z, y, q, r, t, I, v, s, A, H = this.modaldlg,
                                        J = H.getElementsByTagName("div");
                                    for (E = 0; E < J.length; E += 1) {
                                        if (J[E].className && J[E].className.length > 0) {
            Severity: Minor
            Found in performance/yslow.js - About 1 hr to fix

              Function updateProgressView has 47 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                                  updateProgressView: function(q, v) {
                                      var u, x, y, w, z, r, s, t, A = "";
                                      if (this.curButtonId === "panel_about") {
                                          z = this.getButtonView(this.curButtonId);
                                          if (q === "peel") {
              Severity: Minor
              Found in performance/yslow.js - About 1 hr to fix

                Function setComponentDetails has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                YSLOW.Component.prototype.setComponentDetails = function(s) {
                                    var q = this,
                                        r = function(v, t) {
                                            var w;
                                            q.status = t.status;
                Severity: Minor
                Found in performance/yslow.js - About 1 hr to fix

                  Function internalData has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
                      if ( !jQuery.acceptData( elem ) ) {
                          return;
                      }
                  
                  
                  Severity: Minor
                  Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                    Function select has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    select = Sizzle.select = function( selector, context, results, seed ) {
                        var i, tokens, token, type, find,
                            compiled = typeof selector === "function" && selector,
                            match = !seed && tokenize( (selector = compiled.selector || selector) );
                    
                    
                    Severity: Minor
                    Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                      Function internalData has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
                          if ( !jQuery.acceptData( elem ) ) {
                              return;
                          }
                      
                      
                      Severity: Minor
                      Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

                        Function select has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        select = Sizzle.select = function( selector, context, results, seed ) {
                            var i, tokens, token, type, find,
                                compiled = typeof selector === "function" && selector,
                                match = !seed && tokenize( (selector = compiled.selector || selector) );
                        
                        
                        Severity: Minor
                        Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

                          Method testHandleWithDatabaseActiveUrl has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function testHandleWithDatabaseActiveUrl()
                              {
                                  $urlFaker = factory(Url::class, 5)->create();
                          
                                  $project = Mockery::mock(Project::class)->makePartial();
                          Severity: Minor
                          Found in tests/Listeners/CrawlerTheWebsiteTest.php - About 1 hr to fix

                            Method testHandleWithDatabaseNotActiveUrl has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function testHandleWithDatabaseNotActiveUrl()
                                {
                                    $urlFaker = factory(Url::class, 5)->create();
                            
                                    $project = Mockery::mock(Project::class)->makePartial();
                            Severity: Minor
                            Found in tests/Listeners/CrawlerTheWebsiteTest.php - About 1 hr to fix

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

                                  if ( program.opengraph ) {
                                      var opengraph   = require('./opengraph.js');
                                      var ogCheck     = opengraph.check(url);
                                      var ogCount     = opengraph.count();
                                      resultSocmed.checking.push(ogCheck);
                              Severity: Major
                              Found in socmed/socmedChecker.js and 2 other locations - About 1 hr to fix
                              socmed/socmedChecker.js on lines 48..54
                              socmed/socmedChecker.js on lines 57..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 72.

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

                                  if ( program.twittercard ) {
                                      var twittercard     = require('./twittercard.js');
                                      var tcCheck         = twittercard.check(url);
                                      var tcCount         = twittercard.count();
                                      resultSocmed.checking.push(tcCheck);
                              Severity: Major
                              Found in socmed/socmedChecker.js and 2 other locations - About 1 hr to fix
                              socmed/socmedChecker.js on lines 39..45
                              socmed/socmedChecker.js on lines 48..54

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

                              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

                              Severity
                              Category
                              Status
                              Source
                              Language