cipele46/cipele46-web

View on GitHub
public/js/css3-mediaqueries.js

Summary

Maintainability
F
3 wks
Test Coverage

Function enableCssMediaQueries has a Cognitive Complexity of 268 (exceeds 5 allowed). Consider refactoring.
Open

domReady(function enableCssMediaQueries(){
var _37;
var _38={LENGTH_UNIT:/[0-9]+(em|ex|px|in|cm|mm|pt|pc)$/,RESOLUTION_UNIT:/[0-9]+(dpi|dpcm)$/,ASPECT_RATIO:/^[0-9]+\/[0-9]+$/,ABSOLUTE_VALUE:/^[0-9]*(\.[0-9]+)*$/};
var _39=[];
var _3a=function(){
Severity: Minor
Found in public/js/css3-mediaqueries.js - About 5 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function cssHelper has a Cognitive Complexity of 185 (exceeds 5 allowed). Consider refactoring.
Open

var cssHelper=function(){
var _3={BLOCKS:/[^\s{][^{]*\{(?:[^{}]*\{[^{}]*\}[^{}]*|[^{}]*)*\}/g,BLOCKS_INSIDE:/[^\s{][^{]*\{[^{}]*\}/g,DECLARATIONS:/[a-zA-Z\-]+[^;]*:[^;]+;/g,RELATIVE_URLS:/url\(['"]?([^\/\)'"][^:\)'"]+)['"]?\)/g,REDUNDANT_COMPONENTS:/(?:\/\*([^*\\\\]|\*(?!\/))+\*\/|@import[^;]+;)/g,REDUNDANT_WHITESPACE:/\s*(,|:|;|\{|\})\s*/g,MORE_WHITESPACE:/\s{2,}/g,FINAL_SEMICOLONS:/;\}/g,NOT_WHITESPACE:/\S+/g};
var _4,_5=false;
var _6=[];
var _7=function(fn){
Severity: Minor
Found in public/js/css3-mediaqueries.js - About 3 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function cssHelper has 412 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var cssHelper=function(){
var _3={BLOCKS:/[^\s{][^{]*\{(?:[^{}]*\{[^{}]*\}[^{}]*|[^{}]*)*\}/g,BLOCKS_INSIDE:/[^\s{][^{]*\{[^{}]*\}/g,DECLARATIONS:/[a-zA-Z\-]+[^;]*:[^;]+;/g,RELATIVE_URLS:/url\(['"]?([^\/\)'"][^:\)'"]+)['"]?\)/g,REDUNDANT_COMPONENTS:/(?:\/\*([^*\\\\]|\*(?!\/))+\*\/|@import[^;]+;)/g,REDUNDANT_WHITESPACE:/\s*(,|:|;|\{|\})\s*/g,MORE_WHITESPACE:/\s{2,}/g,FINAL_SEMICOLONS:/;\}/g,NOT_WHITESPACE:/\S+/g};
var _4,_5=false;
var _6=[];
var _7=function(fn){
Severity: Major
Found in public/js/css3-mediaqueries.js - About 2 days to fix

    File css3-mediaqueries.js has 777 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    if(typeof Object.create!=="function"){
    Object.create=function(o){
    function F(){
    };
    F.prototype=o;
    Severity: Major
    Found in public/js/css3-mediaqueries.js - About 1 day to fix

      Function enableCssMediaQueries has 287 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      domReady(function enableCssMediaQueries(){
      var _37;
      var _38={LENGTH_UNIT:/[0-9]+(em|ex|px|in|cm|mm|pt|pc)$/,RESOLUTION_UNIT:/[0-9]+(dpi|dpcm)$/,ASPECT_RATIO:/^[0-9]+\/[0-9]+$/,ABSOLUTE_VALUE:/^[0-9]*(\.[0-9]+)*$/};
      var _39=[];
      var _3a=function(){
      Severity: Major
      Found in public/js/css3-mediaqueries.js - About 1 day to fix

        Function _40 has 131 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var _40=function(_41,_42){
        var l=_41.length;
        var min=(_41.substring(0,4)==="min-");
        var max=(!min&&_41.substring(0,4)==="max-");
        if(_42!==null){
        Severity: Major
        Found in public/js/css3-mediaqueries.js - About 5 hrs to fix

          Function domReady has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var domReady=function(){
          var _1=[];
          var _2=function(){
          if(!arguments.callee.done){
          arguments.callee.done=true;
          Severity: Minor
          Found in public/js/css3-mediaqueries.js - About 1 hr to fix

            Function _19 has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var _19=function(el){
            if(typeof el.cssHelperText!=="string"){
            return;
            }
            var o={mediaQueryLists:[],rules:[],selectors:{},declarations:[],properties:{}};
            Severity: Minor
            Found in public/js/css3-mediaqueries.js - About 1 hr to fix

              Function _1e has 43 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var _1e=function(){
              _5=true;
              _4=[];
              var _1f=[];
              var _20=function(){
              Severity: Minor
              Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                Function _52 has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                var _52=function(){
                var _53=cssHelper.getViewportWidth();
                var _54=cssHelper.getViewportHeight();
                if(ua.ie){
                var el=document.createElement("div");
                Severity: Minor
                Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                  Function _c has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  var _c=function(_d,_e,_f){
                  if(ua.ie&&!window.XMLHttpRequest){
                  window.XMLHttpRequest=function(){
                  return new ActiveXObject("Microsoft.XMLHTTP");
                  };
                  Severity: Minor
                  Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                    Function mediaQuery has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    },mediaQuery:function(s,mql){
                    s=s||"";
                    var not=false,_14;
                    var exp=[];
                    var _15=true;
                    Severity: Minor
                    Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                      Function domReady has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                      var domReady=function(){
                      var _1=[];
                      var _2=function(){
                      if(!arguments.callee.done){
                      arguments.callee.done=true;
                      Severity: Minor
                      Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

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

                      },rule:function(s,mql){
                      var o={};
                      var idx=s.indexOf("{");
                      var st=s.substring(0,idx);
                      var ss=st.split(",");
                      Severity: Minor
                      Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                        Function mediaQueryList has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        var _13={mediaQueryList:function(s){
                        var o={};
                        var idx=s.indexOf("{");
                        var lt=s.substring(0,idx);
                        s=s.substring(idx+1,s.length-1);
                        Severity: Minor
                        Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                          if(_43==="resolution"){
                          return ((min&&res>=_44)||(max&&res<_44)||(!min&&!max&&res===_44));
                          }else{
                          return false;
                          }
                          Severity: Major
                          Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                            if(_43==="length"){
                            return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));
                            }else{
                            return false;
                            }
                            Severity: Major
                            Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                              if(_43==="length"){
                              return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));
                              }else{
                              return false;
                              }
                              Severity: Major
                              Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                if(_43==="length"){
                                return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));
                                }else{
                                return false;
                                }
                                Severity: Major
                                Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                  if(_43==="length"){
                                  return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));
                                  }else{
                                  return false;
                                  }
                                  Severity: Major
                                  Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                    if(!r.status&&location.protocol==="file:"||(r.status>=200&&r.status<300)||r.status===304||navigator.userAgent.indexOf("Safari")>-1&&typeof r.status==="undefined"){
                                    _e(r.responseText);
                                    }else{
                                    _f();
                                    }
                                    Severity: Major
                                    Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                      if(_43==="absolute"){
                                      return ((min&&_48>=_44)||(max&&_48<_44)||(!min&&!max&&_48===_44));
                                      }else{
                                      return false;
                                      }
                                      Severity: Major
                                      Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                        if(_43==="absolute"){
                                        return ((min&&_49>=_44)||(max&&_49<_44)||(!min&&!max&&_49===_44));
                                        }else{
                                        return false;
                                        }
                                        Severity: Major
                                        Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                                          Avoid deeply nested control flow statements.
                                          Open

                                          if(_38.ABSOLUTE_VALUE){
                                          _43="absolute";
                                          _44=_42;
                                          }else{
                                          _43="unknown";
                                          Severity: Major
                                          Found in public/js/css3-mediaqueries.js - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                            if(!c[n]){
                                            c[n]=v[n];
                                            }else{
                                            c[n]=c[n].concat(v[n]);
                                            }
                                            Severity: Major
                                            Found in public/js/css3-mediaqueries.js - About 45 mins to fix

                                              Avoid deeply nested control flow statements.
                                              Open

                                              if(_42!==null){
                                              if(_43==="length"){
                                              return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));
                                              }else{
                                              return false;
                                              Severity: Major
                                              Found in public/js/css3-mediaqueries.js - About 45 mins to fix

                                                Avoid deeply nested control flow statements.
                                                Open

                                                if(_43==="length"){
                                                return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));
                                                }else{
                                                return false;
                                                }
                                                Severity: Major
                                                Found in public/js/css3-mediaqueries.js - About 45 mins to fix

                                                  Avoid deeply nested control flow statements.
                                                  Open

                                                  if("device-aspect-ratio"===_41.substring(l-19,l)){
                                                  return _43==="aspect-ratio"&&screen.width*_44[1]===screen.height*_44[0];
                                                  }else{
                                                  if("color-index"===_41.substring(l-11,l)){
                                                  var _48=Math.pow(2,screen.colorDepth);
                                                  Severity: Major
                                                  Found in public/js/css3-mediaqueries.js - About 45 mins to fix

                                                    Avoid too many return statements within this function.
                                                    Open

                                                    return _49>0;
                                                    Severity: Major
                                                    Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                      Avoid too many return statements within this function.
                                                      Open

                                                      return ((min&&res>=_44)||(max&&res<_44)||(!min&&!max&&res===_44));
                                                      Severity: Major
                                                      Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                        Avoid too many return statements within this function.
                                                        Open

                                                        return _47>0;
                                                        Severity: Major
                                                        Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                          Avoid too many return statements within this function.
                                                          Open

                                                          return _48>0;
                                                          Severity: Major
                                                          Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                            Avoid too many return statements within this function.
                                                            Open

                                                            return ((min&&_49>=_44)||(max&&_49<_44)||(!min&&!max&&_49===_44));
                                                            Severity: Major
                                                            Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                              Avoid too many return statements within this function.
                                                              Open

                                                              return false;
                                                              Severity: Major
                                                              Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                Avoid too many return statements within this function.
                                                                Open

                                                                return false;
                                                                Severity: Major
                                                                Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                  Avoid too many return statements within this function.
                                                                  Open

                                                                  return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));
                                                                  Severity: Major
                                                                  Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                    Avoid too many return statements within this function.
                                                                    Open

                                                                    return false;
                                                                    Severity: Major
                                                                    Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                      Avoid too many return statements within this function.
                                                                      Open

                                                                      return _46>0;
                                                                      Severity: Major
                                                                      Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                        Avoid too many return statements within this function.
                                                                        Open

                                                                        return false;
                                                                        Severity: Major
                                                                        Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                          Avoid too many return statements within this function.
                                                                          Open

                                                                          return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));
                                                                          Severity: Major
                                                                          Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                            Avoid too many return statements within this function.
                                                                            Open

                                                                            return false;
                                                                            Severity: Major
                                                                            Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                              Avoid too many return statements within this function.
                                                                              Open

                                                                              return false;
                                                                              Severity: Major
                                                                              Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                                Avoid too many return statements within this function.
                                                                                Open

                                                                                return _43==="aspect-ratio"&&screen.width*_44[1]===screen.height*_44[0];
                                                                                Severity: Major
                                                                                Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                                  Avoid too many return statements within this function.
                                                                                  Open

                                                                                  return ((min&&_48>=_44)||(max&&_48<_44)||(!min&&!max&&_48===_44));
                                                                                  Severity: Major
                                                                                  Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                                    Avoid too many return statements within this function.
                                                                                    Open

                                                                                    return false;
                                                                                    Severity: Major
                                                                                    Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                                      Avoid too many return statements within this function.
                                                                                      Open

                                                                                      return res>0;
                                                                                      Severity: Major
                                                                                      Found in public/js/css3-mediaqueries.js - About 30 mins to fix

                                                                                        Avoid too many return statements within this function.
                                                                                        Open

                                                                                        return _47>0;
                                                                                        Severity: Major
                                                                                        Found in public/js/css3-mediaqueries.js - About 30 mins to fix

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

                                                                                          if("height"===_41.substring(l-6,l)){
                                                                                          _47=document.documentElement.clientHeight||document.body.clientHeight;
                                                                                          if(_42!==null){
                                                                                          if(_43==="length"){
                                                                                          return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 1 other location - About 3 hrs to fix
                                                                                          public/js/css3-mediaqueries.js on lines 573..647

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

                                                                                          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("width"===_41.substring(l-5,l)){
                                                                                          _46=document.documentElement.clientWidth||document.body.clientWidth;
                                                                                          if(_42!==null){
                                                                                          if(_43==="length"){
                                                                                          return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 1 other location - About 3 hrs to fix
                                                                                          public/js/css3-mediaqueries.js on lines 585..646

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

                                                                                          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("device-height"===_41.substring(l-13,l)){
                                                                                          _47=screen.height;
                                                                                          if(_42!==null){
                                                                                          if(_43==="length"){
                                                                                          return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 1 other location - About 3 hrs to fix
                                                                                          public/js/css3-mediaqueries.js on lines 549..649

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

                                                                                          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("device-width"===_41.substring(l-12,l)){
                                                                                          _46=screen.width;
                                                                                          if(_42!==null){
                                                                                          if(_43==="length"){
                                                                                          return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 1 other location - About 3 hrs to fix
                                                                                          public/js/css3-mediaqueries.js on lines 561..648

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

                                                                                          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(var i=0;i<dts.length;i++){
                                                                                          ds[ds.length]=_13.declaration(dts[i],o);
                                                                                          }
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 1 other location - About 1 hr to fix
                                                                                          public/js/css3-mediaqueries.js on lines 145..147

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

                                                                                          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(var i=0;i<qts.length;i++){
                                                                                          mqs[mqs.length]=_13.mediaQuery(qts[i],o);
                                                                                          }
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 1 other location - About 1 hr to fix
                                                                                          public/js/css3-mediaqueries.js on lines 208..210

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

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

                                                                                          },properties:function(fn){
                                                                                          cssHelper.parsed(function(_36){
                                                                                          fn(_2a.properties||_2d("properties"));
                                                                                          });
                                                                                          },broadcast:_a,addListener:function(n,fn){
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 4 other locations - About 35 mins to fix
                                                                                          public/js/css3-mediaqueries.js on lines 442..446
                                                                                          public/js/css3-mediaqueries.js on lines 446..450
                                                                                          public/js/css3-mediaqueries.js on lines 450..454
                                                                                          public/js/css3-mediaqueries.js on lines 454..458

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

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

                                                                                          },declarations:function(fn){
                                                                                          cssHelper.parsed(function(_35){
                                                                                          fn(_2a.declarations||_2d("declarations"));
                                                                                          });
                                                                                          },properties:function(fn){
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 4 other locations - About 35 mins to fix
                                                                                          public/js/css3-mediaqueries.js on lines 442..446
                                                                                          public/js/css3-mediaqueries.js on lines 446..450
                                                                                          public/js/css3-mediaqueries.js on lines 450..454
                                                                                          public/js/css3-mediaqueries.js on lines 458..462

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

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

                                                                                          },rules:function(fn){
                                                                                          cssHelper.parsed(function(_33){
                                                                                          fn(_2a.rules||_2d("rules"));
                                                                                          });
                                                                                          },selectors:function(fn){
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 4 other locations - About 35 mins to fix
                                                                                          public/js/css3-mediaqueries.js on lines 442..446
                                                                                          public/js/css3-mediaqueries.js on lines 450..454
                                                                                          public/js/css3-mediaqueries.js on lines 454..458
                                                                                          public/js/css3-mediaqueries.js on lines 458..462

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

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

                                                                                          },mediaQueryLists:function(fn){
                                                                                          cssHelper.parsed(function(_32){
                                                                                          fn(_2a.mediaQueryLists||_2d("mediaQueryLists"));
                                                                                          });
                                                                                          },rules:function(fn){
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 4 other locations - About 35 mins to fix
                                                                                          public/js/css3-mediaqueries.js on lines 446..450
                                                                                          public/js/css3-mediaqueries.js on lines 450..454
                                                                                          public/js/css3-mediaqueries.js on lines 454..458
                                                                                          public/js/css3-mediaqueries.js on lines 458..462

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

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

                                                                                          },selectors:function(fn){
                                                                                          cssHelper.parsed(function(_34){
                                                                                          fn(_2a.selectors||_2d("selectors"));
                                                                                          });
                                                                                          },declarations:function(fn){
                                                                                          Severity: Major
                                                                                          Found in public/js/css3-mediaqueries.js and 4 other locations - About 35 mins to fix
                                                                                          public/js/css3-mediaqueries.js on lines 442..446
                                                                                          public/js/css3-mediaqueries.js on lines 446..450
                                                                                          public/js/css3-mediaqueries.js on lines 454..458
                                                                                          public/js/css3-mediaqueries.js on lines 458..462

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

                                                                                          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

                                                                                          There are no issues that match your filters.

                                                                                          Category
                                                                                          Status