suitmedia/suitcoda

View on GitHub

Showing 784 of 784 total issues

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

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

    Modernizr.addTest('csscalc', function() {
        var prop = 'width:';
        var value = 'calc(10px);';
        var el = document.createElement('div');
    
    
    Severity: Major
    Found in _frontend/dev/js/vendor/modernizr.js and 1 other location - About 3 hrs to fix
    _frontend/assets/js/vendor/modernizr.min.js on lines 844..852

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

    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

    Modernizr.addTest('csscalc', function() {
        var prop = 'width:';
        var value = 'calc(10px);';
        var el = document.createElement('div');
    
    
    Severity: Major
    Found in _frontend/assets/js/vendor/modernizr.min.js and 1 other location - About 3 hrs to fix
    _frontend/dev/js/vendor/modernizr.js on lines 844..852

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

    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

    ResultReaderTest has 28 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class ResultReaderTest extends TestCase
    {
        use DatabaseTransactions;
    
        /**
    Severity: Minor
    Found in tests/Supports/ResultReaderTest.php - About 3 hrs to fix

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

                                  if (J[E].className && J[E].className.length > 0) {
                                      if (J[E].className === "dialog-box") {
                                          G = J[E]
                                      } else {
                                          if (J[E].className === "dialog-text") {
      Severity: Major
      Found in performance/yslow.js and 1 other location - About 3 hrs to fix
      performance/yslow.js on lines 5141..5153

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

      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

      FastClick.prototype.findControl = function(labelElement) {
          'use strict';
      
          // Fast path for newer browsers supporting the HTML5 control attribute
          if (labelElement.control !== undefined) {
      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 471..487

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

      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 (F = 0; F < C.length; F += 1) {
                                  if (C[F].id === "rulesetEditWeightsDiv") {
                                      v = C[F]
                                  } else {
                                      if (C[F].id === "rulesetEditRulesetId") {
      Severity: Major
      Found in performance/yslow.js and 1 other location - About 3 hrs to fix
      performance/yslow.js on lines 4343..4355

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

      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

      FastClick.prototype.findControl = function(labelElement) {
          'use strict';
      
          // Fast path for newer browsers supporting the HTML5 control attribute
          if (labelElement.control !== undefined) {
      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 471..487

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

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

                          genComponentsTable: function(r, C, v) {
                              var A, y, B, z, u = {
                                      type: "TYPE",
                                      size: "SIZE<br> (KB)",
                                      gzip: "GZIP<br> (KB)",
      Severity: Major
      Found in performance/yslow.js - About 3 hrs to fix

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

                            lint: function(H, s, q) {
                                var t, x, F, w, y, z, G, E = [],
                                    C = [],
                                    D = 0,
                                    B = 0,
        Severity: Major
        Found in performance/yslow.js - About 3 hrs to fix

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

                                          if (T.headers) {
                                              K = T.headers;
                                              F.headers.response = {};
                                              B = F.headers.response;
                                              for (N in K) {
          Severity: Major
          Found in performance/yslow.js and 1 other location - About 3 hrs to fix
          performance/yslow.js on lines 1720..1729

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

          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.req_headers) {
                                              K = T.req_headers;
                                              F.headers.request = {};
                                              B = F.headers.request;
                                              for (N in K) {
          Severity: Major
          Found in performance/yslow.js and 1 other location - About 3 hrs to fix
          performance/yslow.js on lines 1730..1739

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

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

                              rulesetEditUpdateTab: function(I, q, C, r, A) {
                                  var s, B, F, u, z, G, D, x, t, y, H, E, v, w = q.parentNode.parentNode.parentNode;
                                  if (w && w.id === "settingsDiv" && C.custom === true) {
                                      s = w.firstChild;
                                      B = s.nextSibling;
          Severity: Major
          Found in performance/yslow.js - About 3 hrs to fix

            Function componentSortCallback has 78 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                                componentSortCallback: function(q, y) {
                                    var r, t, u, w = "",
                                        v = "",
                                        x = YSLOW.renderer.sortBy,
                                        s = YSLOW.renderer.sortDesc;
            Severity: Major
            Found in performance/yslow.js - About 3 hrs to fix

              Function Sizzle has 75 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function Sizzle( selector, context, results, seed ) {
                  var match, elem, m, nodeType,
                      // QSA vars
                      i, groups, old, nid, newContext, newSelector;
              
              
              Severity: Major
              Found in _frontend/assets/js/vendor/jquery.min.js - About 3 hrs to fix

                Function Sizzle has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function Sizzle( selector, context, results, seed ) {
                    var match, elem, m, nodeType,
                        // QSA vars
                        i, groups, old, nid, newContext, newSelector;
                
                
                Severity: Major
                Found in _frontend/dev/js/vendor/jquery.js - About 3 hrs to fix

                  Inspection has 26 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Inspection extends BaseModel
                  {
                      const STATUS_WAITING = 0;
                      const STATUS_ON_PROGRESS = 1;
                      const STATUS_COMPLETED = 2;
                  Severity: Minor
                  Found in app/Model/Inspection.php - About 3 hrs to fix

                    File CrawlerUrl.php has 291 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    namespace Suitcoda\Supports;
                    
                    use GuzzleHttp\Client;
                    Severity: Minor
                    Found in app/Supports/CrawlerUrl.php - About 3 hrs to fix

                      Function initRulesetEditForm has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                          initRulesetEditForm: function(I, r, D) {
                                              var C, F, E, B, G, K, w, J, v, y, q, u, A, s = r.elements,
                                                  t = "",
                                                  z = [],
                                                  x = 0,
                      Severity: Major
                      Found in performance/yslow.js - About 2 hrs to fix

                        Function buildFragment has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            buildFragment: function( elems, context, scripts, selection ) {
                                var j, elem, contains,
                                    tmp, tag, tbody, wrap,
                                    l = elems.length,
                        
                        
                        Severity: Major
                        Found in _frontend/assets/js/vendor/jquery.min.js - About 2 hrs to fix
                          Severity
                          Category
                          Status
                          Source
                          Language