suitmedia/suitcoda

View on GitHub

Showing 784 of 784 total issues

Function populateProperties has 91 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                YSLOW.Component.prototype.populateProperties = function(A, s) {
                    var v, q, r, x, y, u, z, w = this,
                        t = null,
                        B = "undefined";
                    if (w.headers.location && A && w.headers.location !== w.url) {
Severity: Major
Found in performance/yslow.js - About 3 hrs to fix

    Function view has 90 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    YSLOW.view = function(r, w) {
                        var u, t, v, q, s;
                        this.panel_doc = r.document;
                        this.buttonViews = {};
                        this.curButtonId = "";
    Severity: Major
    Found in performance/yslow.js - About 3 hrs to fix

      Function format has 90 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          sprintf.format = function(parse_tree, argv) {
              var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i, k, match, pad, pad_character, pad_length, is_positive = true, sign = ""
              for (i = 0; i < tree_length; i++) {
                  node_type = get_type(parse_tree[i])
                  if (node_type === "string") {
      Severity: Major
      Found in _frontend/assets/js/vendor/sprintf.min.js - About 3 hrs to fix

        Function format has 90 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            sprintf.format = function(parse_tree, argv) {
                var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i, k, match, pad, pad_character, pad_length, is_positive = true, sign = ""
                for (i = 0; i < tree_length; i++) {
                    node_type = get_type(parse_tree[i])
                    if (node_type === "string") {
        Severity: Major
        Found in _frontend/dev/js/vendor/sprintf.js - About 3 hrs to fix

          Function expandCollapseComponentType has 89 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                              expandCollapseComponentType: function(K, H, u, q, s) {
                                  var B, F, C, J, w, D, y, E, t, G, z, I, x, A, r = this.hasClassName,
                                      v = {
                                          expand: 0,
                                          collapse: 0
          Severity: Major
          Found in performance/yslow.js - About 3 hrs to fix

            Function check has 89 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function check(url) {
            
                var Horseman    = require('node-horseman'),
                    horseman    = new Horseman();
            
            
            Severity: Major
            Found in socmed/twittercard.js - About 3 hrs to fix

              Function trigger has 89 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  trigger: function( event, data, elem, onlyHandlers ) {
                      var handle, ontype, cur,
                          bubbleType, special, tmp, i,
                          eventPath = [ elem || document ],
                          type = hasOwn.call( event, "type" ) ? event.type : event,
              Severity: Major
              Found in _frontend/assets/js/vendor/jquery.min.js - About 3 hrs to fix

                Function trigger has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    trigger: function( event, data, elem, onlyHandlers ) {
                        var handle, ontype, cur,
                            bubbleType, special, tmp, i,
                            eventPath = [ elem || document ],
                            type = hasOwn.call( event, "type" ) ? event.type : event,
                Severity: Major
                Found in _frontend/dev/js/vendor/jquery.js - About 3 hrs to fix

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

                  if (typeof define !== 'undefined' && define.amd) {
                  
                      // AMD. Register as an anonymous module.
                      define(function() {
                          'use strict';
                  Severity: Major
                  Found in _frontend/assets/js/vendor/fastclick.min.js and 1 other location - About 3 hrs to fix
                  _frontend/dev/js/vendor/fastclick.js on lines 749..761

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

                  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

                  if (typeof define !== 'undefined' && define.amd) {
                  
                      // AMD. Register as an anonymous module.
                      define(function() {
                          'use strict';
                  Severity: Major
                  Found in _frontend/dev/js/vendor/fastclick.js and 1 other location - About 3 hrs to fix
                  _frontend/assets/js/vendor/fastclick.min.js on lines 749..761

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

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

                      public function testRunSeoResultReaderCatchException()
                      {
                          $jobFaker = factory(JobInspect::class)->create([
                              'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
                              'scope_id' => Scope::where('id', 1)->first()->id
                  Severity: Major
                  Found in tests/Supports/ResultReaderTest.php and 6 other locations - About 3 hrs to fix
                  tests/Supports/ResultReaderTest.php on lines 336..352
                  tests/Supports/ResultReaderTest.php on lines 395..411
                  tests/Supports/ResultReaderTest.php on lines 454..470
                  tests/Supports/ResultReaderTest.php on lines 517..533
                  tests/Supports/ResultReaderTest.php on lines 583..599
                  tests/Supports/ResultReaderTest.php on lines 646..662

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

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

                      public function testRunHtmlResultReaderCatchException()
                      {
                          $jobFaker = factory(JobInspect::class)->create([
                              'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
                              'scope_id' => Scope::where('id', 3)->first()->id
                  Severity: Major
                  Found in tests/Supports/ResultReaderTest.php and 6 other locations - About 3 hrs to fix
                  tests/Supports/ResultReaderTest.php on lines 277..293
                  tests/Supports/ResultReaderTest.php on lines 395..411
                  tests/Supports/ResultReaderTest.php on lines 454..470
                  tests/Supports/ResultReaderTest.php on lines 517..533
                  tests/Supports/ResultReaderTest.php on lines 583..599
                  tests/Supports/ResultReaderTest.php on lines 646..662

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

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

                      public function testRunPageSpeedResultReaderCatchException()
                      {
                          $jobFaker = factory(JobInspect::class)->create([
                              'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
                              'scope_id' => Scope::where('id', 8)->first()->id
                  Severity: Major
                  Found in tests/Supports/ResultReaderTest.php and 6 other locations - About 3 hrs to fix
                  tests/Supports/ResultReaderTest.php on lines 277..293
                  tests/Supports/ResultReaderTest.php on lines 336..352
                  tests/Supports/ResultReaderTest.php on lines 395..411
                  tests/Supports/ResultReaderTest.php on lines 454..470
                  tests/Supports/ResultReaderTest.php on lines 517..533
                  tests/Supports/ResultReaderTest.php on lines 646..662

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

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

                      public function testRunSoccialMediaResultReaderCatchException()
                      {
                          $jobFaker = factory(JobInspect::class)->create([
                              'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
                              'scope_id' => Scope::where('id', 6)->first()->id
                  Severity: Major
                  Found in tests/Supports/ResultReaderTest.php and 6 other locations - About 3 hrs to fix
                  tests/Supports/ResultReaderTest.php on lines 277..293
                  tests/Supports/ResultReaderTest.php on lines 336..352
                  tests/Supports/ResultReaderTest.php on lines 395..411
                  tests/Supports/ResultReaderTest.php on lines 454..470
                  tests/Supports/ResultReaderTest.php on lines 583..599
                  tests/Supports/ResultReaderTest.php on lines 646..662

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

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

                      public function testRunYslowResultReaderCatchException()
                      {
                          $jobFaker = factory(JobInspect::class)->create([
                              'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
                              'scope_id' => Scope::where('id', 9)->first()->id
                  Severity: Major
                  Found in tests/Supports/ResultReaderTest.php and 6 other locations - About 3 hrs to fix
                  tests/Supports/ResultReaderTest.php on lines 277..293
                  tests/Supports/ResultReaderTest.php on lines 336..352
                  tests/Supports/ResultReaderTest.php on lines 395..411
                  tests/Supports/ResultReaderTest.php on lines 454..470
                  tests/Supports/ResultReaderTest.php on lines 517..533
                  tests/Supports/ResultReaderTest.php on lines 583..599

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

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

                      public function testRunCssResultReaderCatchException()
                      {
                          $jobFaker = factory(JobInspect::class)->create([
                              'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
                              'scope_id' => Scope::where('id', 4)->first()->id
                  Severity: Major
                  Found in tests/Supports/ResultReaderTest.php and 6 other locations - About 3 hrs to fix
                  tests/Supports/ResultReaderTest.php on lines 277..293
                  tests/Supports/ResultReaderTest.php on lines 336..352
                  tests/Supports/ResultReaderTest.php on lines 454..470
                  tests/Supports/ResultReaderTest.php on lines 517..533
                  tests/Supports/ResultReaderTest.php on lines 583..599
                  tests/Supports/ResultReaderTest.php on lines 646..662

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

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

                      public function testRunJsResultReaderCatchException()
                      {
                          $jobFaker = factory(JobInspect::class)->create([
                              'command_line' => 'nodejs --url http://example.com --destination /public/files/example/1/url-1/',
                              'scope_id' => Scope::where('id', 5)->first()->id
                  Severity: Major
                  Found in tests/Supports/ResultReaderTest.php and 6 other locations - About 3 hrs to fix
                  tests/Supports/ResultReaderTest.php on lines 277..293
                  tests/Supports/ResultReaderTest.php on lines 336..352
                  tests/Supports/ResultReaderTest.php on lines 395..411
                  tests/Supports/ResultReaderTest.php on lines 517..533
                  tests/Supports/ResultReaderTest.php on lines 583..599
                  tests/Supports/ResultReaderTest.php on lines 646..662

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

                  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 (q !== undefined) {
                                              this.PAGE.totalSize = q.total_size;
                                              this.PAGE.totalRequests = q.num_requests;
                                              this.PAGE.totalObjCount = q.count_obj;
                                              this.PAGE.totalObjSize = q.size_obj;
                  Severity: Major
                  Found in performance/yslow.js and 1 other location - About 3 hrs to fix
                  performance/yslow.js on lines 4746..4752

                  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

                                          if (q) {
                                              this.PAGE.totalSizePrimed = q.total_size;
                                              this.PAGE.totalRequestsPrimed = q.num_requests;
                                              this.PAGE.totalObjCountPrimed = q.count_obj;
                                              this.PAGE.totalObjSizePrimed = q.size_obj;
                  Severity: Major
                  Found in performance/yslow.js and 1 other location - About 3 hrs to fix
                  performance/yslow.js on lines 4738..4744

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

                  function Animation( elem, properties, options ) {
                      var result,
                          stopped,
                          index = 0,
                          length = animationPrefilters.length,
                  Severity: Major
                  Found in _frontend/assets/js/vendor/jquery.min.js - About 3 hrs to fix
                    Severity
                    Category
                    Status
                    Source
                    Language