suitmedia/suitcoda

View on GitHub

Showing 784 of 784 total issues

Function promise has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

jQuery.ready.promise = function( obj ) {
    if ( !readyList ) {

        readyList = jQuery.Deferred();

Severity: Minor
Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

    Function attr has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        attr: function( elem, name, value ) {
            var hooks, ret,
                nType = elem.nodeType;
    
            // don't get/set attributes on text, comment and attribute nodes
    Severity: Minor
    Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

      Function handlers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          handlers: function( event, handlers ) {
              var sel, handleObj, matches, i,
                  handlerQueue = [],
                  delegateCount = handlers.delegateCount,
                  cur = event.target;
      Severity: Minor
      Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

        Method testDoRequestHtmlWithoutTag has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function testDoRequestHtmlWithoutTag()
            {
                $html = '<!DOCTYPE html>
                    <html>
                        <body>
        Severity: Minor
        Found in tests/Supports/CrawlerUrlTest.php - About 1 hr to fix

          Method testRunPageSpeedResultReader has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Function injectElementWithStyles has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                injectElementWithStyles = function( rule, callback, nodes, testnames ) {
            
                  var style, ret, node, docOverflow,
                      div = document.createElement('div'),
                            body = document.body,
            Severity: Minor
            Found in _frontend/dev/js/vendor/modernizr.js - About 1 hr to fix

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

                                      try {
                                          if (typeof z === "object") {
                                              G = z.run(A.document, A.component_set, r);
                                              if (z.print_output) {
                                                  w = "";
              Severity: Major
              Found in performance/yslow.js and 1 other location - About 1 hr to fix
              performance/yslow.js on lines 862..910

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

              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

              program
              .version('0.0.1')
              .option('-u, --url [url]', 'Input URL')
              .option('-d, --destination [path]', 'Input Path to Store The Output')
              .option('--title',      'Include Title Tag Checker')
              Severity: Major
              Found in seo/seoChecker.js and 1 other location - About 1 hr to fix
              socmed/socmedChecker.js on lines 8..15

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

              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

              program
              .version('0.0.1')
              .option('-u, --url [url]', 'input url')
              .option('-d, --destination [path]', 'input path to store the output')
              .option('-o, --opengraph', 'Include Open Graph Validation')
              Severity: Major
              Found in socmed/socmedChecker.js and 1 other location - About 1 hr to fix
              seo/seoChecker.js on lines 10..17

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

              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

                                              try {
                                                  t = this.rules[F];
                                                  w = YSLOW.util.merge(t.config, x[F]);
                                                  y = t.lint(H, s.component_set, w);
                                                  z = (E.weights ? E.weights[F] : undefined);
              Severity: Major
              Found in performance/yslow.js and 1 other location - About 1 hr to fix
              performance/yslow.js on lines 923..978

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

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

                                  countAlphaImageLoaderFilter: function(v) {
                                      var t, u, s, w, r = 0,
                                          x = 0,
                                          q = {};
                                      t = v.indexOf("filter:");
              Severity: Minor
              Found in performance/yslow.js - About 1 hr to fix

                Function html has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    html: function( value ) {
                        return access( this, function( value ) {
                            var elem = this[ 0 ] || {},
                                i = 0,
                                l = this.length;
                Severity: Minor
                Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                  Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      toggleClass: function( value, stateVal ) {
                          var type = typeof value;
                  
                          if ( typeof stateVal === "boolean" && type === "string" ) {
                              return stateVal ? this.addClass( value ) : this.removeClass( value );
                  Severity: Minor
                  Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                    Function onTouchStart has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    FastClick.prototype.onTouchStart = function(event) {
                        'use strict';
                        var targetElement, touch, selection;
                    
                        // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
                    Severity: Minor
                    Found in _frontend/assets/js/vendor/fastclick.min.js - About 1 hr to fix

                      Function html has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          html: function( value ) {
                              return access( this, function( value ) {
                                  var elem = this[ 0 ] || {},
                                      i = 0,
                                      l = this.length;
                      Severity: Minor
                      Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

                        Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            toggleClass: function( value, stateVal ) {
                                var type = typeof value;
                        
                                if ( typeof stateVal === "boolean" && type === "string" ) {
                                    return stateVal ? this.addClass( value ) : this.removeClass( value );
                        Severity: Minor
                        Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

                          Function onTouchStart has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          FastClick.prototype.onTouchStart = function(event) {
                              'use strict';
                              var targetElement, touch, selection;
                          
                              // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
                          Severity: Minor
                          Found in _frontend/dev/js/vendor/fastclick.js - About 1 hr to fix

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

                                public function testNotRedirectIfAuthenticate()
                                {
                                    $guard = Mockery::mock('Illuminate\Auth\Guard');
                                    $guard->shouldReceive('guest')->andReturn(false);
                            
                            
                            Severity: Major
                            Found in tests/Http/Middleware/AuthenticateTest.php and 1 other location - About 1 hr to fix
                            tests/Http/Middleware/RedirectIfAuthenticatedTest.php on lines 18..32

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

                            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

                                public function testNotRedirectIfNotAuthenticated()
                                {
                                    $guard = Mockery::mock('Illuminate\Auth\Guard');
                                    $guard->shouldReceive('check')->andReturn(false);
                            
                            
                            Severity: Major
                            Found in tests/Http/Middleware/RedirectIfAuthenticatedTest.php and 1 other location - About 1 hr to fix
                            tests/Http/Middleware/AuthenticateTest.php on lines 18..32

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

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

                                                openSaveAsDialog: function(s, r) {
                                                    var q = '<label>Save ruleset as: <input type="text" id="saveas-name" class="text-input" name="saveas-name" length="100" maxlength="100"></label>',
                                                        t = "Save",
                                                        u = function(B) {
                                                            var y, w, v, z, x, A = YSLOW.util.getCurrentTarget(B).ownerDocument;
                            Severity: Minor
                            Found in performance/yslow.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language