suitmedia/suitcoda

View on GitHub

Showing 784 of 784 total issues

Function getInlineTags has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function propFilter( props, specialEasing ) {
        var index, name, easing, value, hooks;
    
        // camelCase, specialEasing and expand cssHook pass
        for ( index in props ) {
    Severity: Minor
    Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

      Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              setup: function() {
      
                  if ( rformElems.test( this.nodeName ) ) {
                      // IE doesn't fire change on a check/radio until blur; trigger it on click
                      // after a propertychange. Eat the blur-change in special.change.handle.
      Severity: Minor
      Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

        Function reanimateBar has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                reanimateBar: function() {
                    var $el = this.$el;
                    var $elID = $el.attr('id');
                    var opt = this.opt;
                    var barLength = $.data($el, 'storedAttr').barLength;
        Severity: Minor
        Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js - About 1 hr to fix

          Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function propFilter( props, specialEasing ) {
              var index, name, easing, value, hooks;
          
              // camelCase, specialEasing and expand cssHook pass
              for ( index in props ) {
          Severity: Minor
          Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

            Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    setup: function() {
            
                        if ( rformElems.test( this.nodeName ) ) {
                            // IE doesn't fire change on a check/radio until blur; trigger it on click
                            // after a propertychange. Eat the blur-change in special.change.handle.
            Severity: Minor
            Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

              Method testRunSoccialMediaResultReader has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function testRunSoccialMediaResultReader()
                  {
                      $json = json_encode([
                          'url' => 'https://example.com/',
                          'name' => 'Social Media Linter',
              Severity: Minor
              Found in tests/Supports/ResultReaderTest.php - About 1 hr to fix

                Method testRunYslowResultReader has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function testRunYslowResultReader()
                    {
                        $json = json_encode([
                            'url' => 'https://example.com/',
                            'name' => 'YSlow',
                Severity: Minor
                Found in tests/Supports/ResultReaderTest.php - About 1 hr to fix

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

                                              if ((u + 2) < v.length) {
                                                  x = v.charCodeAt(u + 2)
                                              } else {
                                                  x = 0;
                                                  w += 1
                  Severity: Major
                  Found in performance/yslow.js and 1 other location - About 1 hr to fix
                  performance/yslow.js on lines 1369..1374

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

                  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 ((u + 1) < v.length) {
                                                  s = v.charCodeAt(u + 1)
                                              } else {
                                                  s = 0;
                                                  w += 1
                  Severity: Major
                  Found in performance/yslow.js and 1 other location - About 1 hr to fix
                  performance/yslow.js on lines 1375..1380

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

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

                                      positionResultTab: function(r, q, w) {
                                          var u, z, A, v = 5,
                                              x = this.panel_doc,
                                              t = x.defaultView || x.parentWindow,
                                              s = t.offsetHeight ? t.offsetHeight : t.innerHeight,
                  Severity: Minor
                  Found in performance/yslow.js - About 1 hr to fix

                    Function genStats has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                        genStats: function(y, z) {
                                            var v, w, s, r, B, x, q, u, t = "",
                                                A = 0;
                                            if (!y.PAGE) {
                                                return ""
                    Severity: Minor
                    Found in performance/yslow.js - About 1 hr to fix

                      Function peel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                      YSLOW.peeler.peel = function(t) {
                                          var q, w, v, u, r, x = [];
                                          try {
                                              w = this.findDocuments(t);
                                              for (q in w) {
                      Severity: Minor
                      Found in performance/yslow.js - About 1 hr to fix

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

                                            lint: function(y, A, r) {
                                                var x, z, w, t, s, v = [],
                                                    u = parseInt(r.min_cache_time, 10) * 1000,
                                                    q = A.getComponentsByType("favicon");
                                                if (q.length) {
                        Severity: Minor
                        Found in performance/yslow.js - About 1 hr to fix

                          Function componentsView has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                              componentsView: function(u, r) {
                                                  var t, q, s = "<components>";
                                                  for (t = 0; t < u.length; t += 1) {
                                                      s += "<component>";
                                                      s += "<type>" + u[t].type + "</type>";
                          Severity: Minor
                          Found in performance/yslow.js - About 1 hr to fix

                            Function offset has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                offset: function( options ) {
                                    if ( arguments.length ) {
                                        return options === undefined ?
                                            this :
                                            this.each(function( i ) {
                            Severity: Minor
                            Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                              Function off has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  off: function( types, selector, fn ) {
                                      var handleObj, type;
                                      if ( types && types.preventDefault && types.handleObj ) {
                                          // ( event )  dispatched jQuery.Event
                                          handleObj = types.handleObj;
                              Severity: Minor
                              Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                                Function bind has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      Function.prototype.bind = function bind(that) {
                                
                                        var target = this;
                                
                                        if (typeof target != "function") {
                                Severity: Minor
                                Found in _frontend/assets/js/vendor/modernizr.min.js - About 1 hr to fix

                                  Function * has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          "*": [ function( prop, value ) {
                                              var tween = this.createTween( prop, value ),
                                                  target = tween.cur(),
                                                  parts = rfxnum.exec( value ),
                                                  unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                                  Severity: Minor
                                  Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                                    Function isEventSupported has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        isEventSupported = (function() {
                                    
                                          var TAGNAMES = {
                                            'select': 'input', 'change': 'input',
                                            'submit': 'form', 'reset': 'form',
                                    Severity: Minor
                                    Found in _frontend/assets/js/vendor/modernizr.min.js - About 1 hr to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language