modxcms/revolution

View on GitHub
manager/assets/ext3/adapter/ext/ext-base-debug.js

Summary

Maintainability
F
3 mos
Test Coverage

File ext-base-debug.js has 2055 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
This file is part of Ext JS 3.4

Copyright (c) 2011-2013 Sencha Inc

Severity: Major
Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 5 days to fix

    Function Event has 299 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    })();Ext.lib.Event = function() {
        var loadComplete = false,
            unloadListeners = {},
            retryCount = 0,
            onAvailStack = [],
    Severity: Major
    Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 1 day to fix

      Function Ajax has 275 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Ext.lib.Ajax = function() {
          var activeX = ['Msxml2.XMLHTTP.3.0',
                         'Msxml2.XMLHTTP'],
              CONTENTTYPE = 'Content-Type';
      
      
      Severity: Major
      Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 1 day to fix

        Function TaskRunner has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
        Open

        Ext.util.TaskRunner = function(interval){
            interval = interval || 10;
            var tasks = [], 
                removeQueue = [],
                id = 0,
        Severity: Minor
        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 4 hrs 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 AnimMgr has 90 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            Ext.lib.AnimMgr = new function() {
                var me = this,
                    thread = null,
                    queue = [],
                    tweenCount = 0;
        Severity: Major
        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 3 hrs to fix

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

                  init: function(el, attributes, duration, method) {
                      var me = this,
                          actualFrames = 0,
                          mgr = EXTLIB.AnimMgr;
          
          
          Severity: Major
          Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 3 hrs to fix

            Function TaskRunner has 73 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Ext.util.TaskRunner = function(interval){
                interval = interval || 10;
                var tasks = [], 
                    removeQueue = [],
                    id = 0,
            Severity: Major
            Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 2 hrs to fix

              Function handleTransactionResponse has 59 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function handleTransactionResponse(o, callback, isAbort, isTimeout) {
                      if (!callback) {
                          releaseObject(o);
                          return;
                      }
              Severity: Major
              Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 2 hrs to fix

                Function getXY has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        getXY : function(el) {
                            var p, 
                                pe, 
                                b,
                                bt, 
                Severity: Major
                Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 2 hrs to fix

                  Function define has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          define: function (className, body, createdFn) {
                              var override = body.override,
                                  cls, extend, name, namespace;
                  
                              if (override) {
                  Severity: Major
                  Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 2 hrs to fix

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

                            override: function (target, overrides) {
                                var proto, statics;
                    
                                if (overrides) {
                                    if (target.$isClass) {
                    Severity: Minor
                    Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 1 hr to fix

                      Function setRunAttr has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                  setRunAttr: function(attr){
                                      if(pointsRe.test(attr)){
                      
                                          var me = this,
                                              el = this.el,
                      Severity: Minor
                      Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 1 hr to fix

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

                                extend : function(){
                                    // inline overrides
                                    var io = function(o){
                                        for(var m in o){
                                            this[m] = o[m];
                        Severity: Minor
                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 1 hr to fix

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

                              function _tryPreloadAttach() {
                                  var ret = false,
                                      notAvail = [],
                                      element, i, v, override,
                                      tryAgain = !loadComplete || (retryCount > 0);
                          Severity: Minor
                          Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 1 hr to fix

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

                                function createResponseObject(o, callbackArg) {
                                    var headerObj = {},
                                        headerStr,
                                        conn = o.conn,
                                        t,
                            Severity: Minor
                            Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 1 hr to fix

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

                                      setRunAttr: function(attr) {
                                          var me = this,
                                              a = this.attributes[attr],
                                              to = a.to,
                                              by = a.by,
                              Severity: Minor
                              Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 1 hr to fix

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

                                        runTasks = function(){
                                            var rqLen = removeQueue.length,
                                                now = new Date().getTime();                                
                                        
                                            if(rqLen > 0){
                                Severity: Minor
                                Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 1 hr to fix

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

                                          serializeForm : function(form) {
                                              var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements, 
                                                  hasSubmit = false, 
                                                  encoder = encodeURIComponent, 
                                                  name, 
                                  Severity: Minor
                                  Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 1 hr to fix

                                    Function run has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            run : function(el, args, duration, easing, cb, scope, type) {
                                    Severity: Major
                                    Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 50 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if((li = lis[i]) && li[TYPE] == eventName && li[FN] == fn){
                                                                      unloadListeners[el.id].splice(i, 1);
                                                                  }
                                      Severity: Major
                                      Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                        Function checkResponse has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            function checkResponse(o, callback, conn, tId, poll, cbTimeout){
                                        Severity: Minor
                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                          Function elasticOut has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                                  elasticOut: function (t, b, c, d, a, p) {
                                          Severity: Minor
                                          Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                                    for (name in overrides) {
                                                                        if (overrides.hasOwnProperty(name)) {
                                                                            value = overrides[name];
                                            
                                                                            if (typeof value == 'function') {
                                            Severity: Major
                                            Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                              Function scroll has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                              Open

                                                  EXTLIB.Anim.scroll = function(el, args, duration, easing, cb, scope) {
                                              Severity: Minor
                                              Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                                Function color has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                Open

                                                    EXTLIB.Anim.color = function(el, args, duration, easing, cb, scope) {
                                                Severity: Minor
                                                Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                                  Function elasticBoth has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                          elasticBoth: function (t, b, c, d, a, p) {
                                                  Severity: Minor
                                                  Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                                    Function motion has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                            motion : function(el, args, duration, easing, cb, scope) {
                                                    Severity: Minor
                                                    Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                                      Function elasticIn has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                              elasticIn: function (t, b, c, d, a, p) {
                                                      Severity: Minor
                                                      Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                                        Avoid deeply nested control flow statements.
                                                        Open

                                                                                if (!target.constructor.$isClass) {
                                                                                    target.constructor.prototype.callParent = Base.prototype.callParent;
                                                                                    target.constructor.callParent = Base.callParent;
                                                                                }
                                                        Severity: Major
                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                                          Avoid deeply nested control flow statements.
                                                          Open

                                                                                      if (p != el && !pe.isStyle('overflow','visible')) {
                                                                                          x += bl;
                                                                                          y += bt;
                                                                                      }
                                                          Severity: Major
                                                          Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 45 mins to fix

                                                            Function backIn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                            Open

                                                                    backIn: function (t, b, c, d, s) {
                                                            Severity: Minor
                                                            Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 35 mins to fix

                                                              Function request has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                              Open

                                                                      request : function(method, uri, cb, data, options) {
                                                              Severity: Minor
                                                              Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 35 mins to fix

                                                                Function backOut has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                Open

                                                                        backOut: function (t, b, c, d, s) {
                                                                Severity: Minor
                                                                Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 35 mins to fix

                                                                  Function backBoth has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                  Open

                                                                          backBoth: function (t, b, c, d, s) {
                                                                  Severity: Minor
                                                                  Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 35 mins to fix

                                                                    Avoid too many return statements within this function.
                                                                    Open

                                                                                        return e;
                                                                    Severity: Major
                                                                    Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 30 mins to fix

                                                                      Avoid too many return statements within this function.
                                                                      Open

                                                                                          return el;
                                                                      Severity: Major
                                                                      Found in manager/assets/ext3/adapter/ext/ext-base-debug.js - About 30 mins to fix

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

                                                                        (function(){
                                                                            var idSeed = 0,
                                                                                toString = Object.prototype.toString,
                                                                                ua = navigator.userAgent.toLowerCase(),
                                                                                check = function(r){
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 3 other locations - About 1 mo to fix
                                                                        manager/assets/ext3/adapter/jquery/ext-jquery-adapter-debug.js on lines 64..1286
                                                                        manager/assets/ext3/adapter/prototype/ext-prototype-adapter-debug.js on lines 64..1286
                                                                        manager/assets/ext3/adapter/yui/ext-yui-adapter-debug.js on lines 64..1286

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

                                                                        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

                                                                        (function(){
                                                                            // shortcuts to aid compression
                                                                            var abs = Math.abs,
                                                                                pi = Math.PI,
                                                                                asin = Math.asin,
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 wk to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1924..2052

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

                                                                        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

                                                                                init: function(el, attributes, duration, method) {
                                                                                    var me = this,
                                                                                        actualFrames = 0,
                                                                                        mgr = EXTLIB.AnimMgr;
                                                                        
                                                                        
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 4 days to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1578..1670

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

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

                                                                        Ext.util.TaskRunner = function(interval){
                                                                            interval = interval || 10;
                                                                            var tasks = [], 
                                                                                removeQueue = [],
                                                                                id = 0,
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 3 other locations - About 4 days to fix
                                                                        manager/assets/ext3/adapter/jquery/ext-jquery-adapter-debug.js on lines 1549..1669
                                                                        manager/assets/ext3/adapter/prototype/ext-prototype-adapter-debug.js on lines 1549..1669
                                                                        manager/assets/ext3/adapter/yui/ext-yui-adapter-debug.js on lines 1549..1669

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

                                                                        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

                                                                        (function() {
                                                                            // Scroll Animation
                                                                            var EXTLIB = Ext.lib;
                                                                            EXTLIB.Anim.scroll = function(el, args, duration, easing, cb, scope) {
                                                                                return EXTLIB.Anim.run(el, args, duration, easing, cb, scope, EXTLIB.Scroll);
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 2 days to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 2161..2217

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

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

                                                                        Ext.apply(Function.prototype, {
                                                                             /**
                                                                             * Creates an interceptor function. The passed function is called before the original one. If it returns false,
                                                                             * the original one is not called. The resulting function returns the results of the original function.
                                                                             * The passed function is called with the parameters of the original function. Example usage:
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 3 other locations - About 2 days to fix
                                                                        manager/assets/ext3/adapter/jquery/ext-jquery-adapter-debug.js on lines 1296..1452
                                                                        manager/assets/ext3/adapter/prototype/ext-prototype-adapter-debug.js on lines 1296..1452
                                                                        manager/assets/ext3/adapter/yui/ext-yui-adapter-debug.js on lines 1296..1452

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

                                                                        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

                                                                            function handleTransactionResponse(o, callback, isAbort, isTimeout) {
                                                                                if (!callback) {
                                                                                    releaseObject(o);
                                                                                    return;
                                                                                }
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 2 days to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1190..1254

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

                                                                        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 (el.getBoundingClientRect) {
                                                                                            b = el.getBoundingClientRect();
                                                                                            scroll = fly(document).getScroll();
                                                                                            ret = [ROUND(b.left + scroll.left), ROUND(b.top + scroll.top)];
                                                                                        } else {  
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 2 days to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 605..652

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

                                                                        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

                                                                            EXTLIB.Bezier = new function() {
                                                                        
                                                                                this.getPosition = function(points, t) {
                                                                                    var n = points.length,
                                                                                        tmp = [],
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 day to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1779..1802

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

                                                                        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(isset(to)){
                                                                                                end = translateValues.call(me, to, start);
                                                                                                for (i = 0,len = control.length; i < len; ++i) {
                                                                                                    control[i] = translateValues.call(me, control[i], start);
                                                                                                }
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 day to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1892..1903

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

                                                                        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

                                                                                var correctFrame = function(tween) {
                                                                                    var frames = tween.totalFrames,
                                                                                        frame = tween.curFrame,
                                                                                        duration = tween.duration,
                                                                                        expected = (frame * duration * 1000 / frames),
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 day to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1757..1776

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

                                                                        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

                                                                                getAttr: function(attr) {
                                                                                    var el = Ext.fly(this.el),
                                                                                        val = el.getStyle(attr),
                                                                                        a = offsetAttribute.exec(attr) || [];
                                                                        
                                                                        
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 7 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1512..1522

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

                                                                        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

                                                                            EXTLIB.Anim = {
                                                                                motion : function(el, args, duration, easing, cb, scope) {
                                                                                    return this.run(el, args, duration, easing, cb, scope, Ext.lib.Motion);
                                                                                },
                                                                        
                                                                        
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 7 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1471..1489

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

                                                                        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

                                                                            function parseColor(s) {
                                                                                var pi = parseInt,
                                                                                    base,
                                                                                    out = null,
                                                                                    c;
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 6 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 2078..2097

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

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

                                                                        Ext.applyIf(Array.prototype, {
                                                                            /**
                                                                             * Checks whether or not the specified object exists in the array.
                                                                             * @param {Object} o The object to check for
                                                                             * @param {Number} from (Optional) The index at which to begin the search
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 3 other locations - About 6 hrs to fix
                                                                        manager/assets/ext3/adapter/jquery/ext-jquery-adapter-debug.js on lines 1484..1515
                                                                        manager/assets/ext3/adapter/prototype/ext-prototype-adapter-debug.js on lines 1484..1515
                                                                        manager/assets/ext3/adapter/yui/ext-yui-adapter-debug.js on lines 1484..1515

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

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

                                                                                isAncestor : function(p, c) {
                                                                                    var ret = false;
                                                                                    
                                                                                    p = Ext.getDom(p);
                                                                                    c = Ext.getDom(c);
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 2 other locations - About 5 hrs to fix
                                                                        manager/assets/ext3/adapter/jquery/ext-jquery-adapter-debug.js on lines 1707..1724
                                                                        setup/assets/js/ext-core-debug.js on lines 534..551

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

                                                                        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

                                                                                getAttr : function(attr) {
                                                                                    var me = this,
                                                                                        el = me.el,
                                                                                        val;
                                                                                    if(colorRE.test(attr)){
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 4 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 2100..2113

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

                                                                        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

                                                                                    stop: function(tween){
                                                                                        if(!tween){
                                                                                            clearInterval(thread);
                                                                                            for(var i = 0, len = queue.length; i < len; ++i){
                                                                                                if(queue[0].isAnimated){
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 4 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1709..1724

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

                                                                        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

                                                                            EXTLIB.Easing = {
                                                                                easeNone: function (t, b, c, d) {
                                                                                    return c * t / d + b;
                                                                                },
                                                                        
                                                                        
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 3 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1805..1819

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

                                                                        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

                                                                                    setAttr: function(attr, val, unit){
                                                                                        var me = this,
                                                                                            setAttr = superclass.setAttr;
                                                                        
                                                                                        if (pointsRe.test(attr)) {
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 3 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1835..1846

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

                                                                        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

                                                                                getEvent : function(e) {
                                                                                    e = e || win.event;
                                                                                    if (!e) {
                                                                                        var c = this.getEvent.caller;
                                                                                        while (c) {
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 3 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 993..1006

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

                                                                        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(tween && tween.isAnimated){
                                                                                                tf = tween.totalFrames;
                                                                                                if(tween.curFrame < tf || tf === null){
                                                                                                    ++tween.curFrame;
                                                                                                    if(tween.useSec){
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 3 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1729..1740

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

                                                                        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 (/select-(one|multiple)/i.test(type)) {
                                                                                                Ext.each(element.options, function(opt){
                                                                                                    if (opt.selected) {
                                                                                                        hasValue = opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified;
                                                                                                        data += String.format("{0}={1}&", encoder(name), encoder(hasValue ? opt.value : opt.text));
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 3 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1377..1391

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

                                                                        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

                                                                                animateX : function(callback, scope) {
                                                                                    var me = this,
                                                                                        f = function() {
                                                                                        me.onComplete.removeListener(f);
                                                                                        if (Ext.isFunction(callback)) {
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 3 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1529..1539

                                                                        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

                                                                            if (Ext.isIE9m) {
                                                                                function fnCleanUp() {
                                                                                    var p = Function.prototype;
                                                                                    delete p.createSequence;
                                                                                    delete p.defer;
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 3 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 2219..2231

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

                                                                        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

                                                                                    doMethod: function(attr, start, end){
                                                                                        var me = this;
                                                                        
                                                                                        return pointsRe.test(attr)
                                                                                                ? EXTLIB.Bezier.getPosition(me.runAttrs[attr], me.method(me.curFrame, 0, 100, me.totalFrames) / 100)
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 3 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1855..1861

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

                                                                        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

                                                                                            var me = this,
                                                                                                el = this.el,
                                                                                                points = this.attributes.points,
                                                                                                control = points.control || [],
                                                                                                from = points.from,
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 2 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1866..1878

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

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

                                                                        Ext.apply = function(o, c, defaults){
                                                                            // no "this" reference for friendly out of scope calls
                                                                            if(defaults){
                                                                                Ext.apply(o, defaults);
                                                                            }
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 3 other locations - About 2 hrs to fix
                                                                        manager/assets/ext3/adapter/jquery/ext-jquery-adapter-debug.js on lines 51..62
                                                                        manager/assets/ext3/adapter/prototype/ext-prototype-adapter-debug.js on lines 51..62
                                                                        manager/assets/ext3/adapter/yui/ext-yui-adapter-debug.js on lines 51..62

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

                                                                        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

                                                                            function checkResponse(o, callback, conn, tId, poll, cbTimeout){
                                                                                if (conn && conn.readyState == 4) {
                                                                                    clearInterval(poll[tId]);
                                                                                    poll[tId] = null;
                                                                        
                                                                        
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 2 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1271..1283

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

                                                                        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

                                                                                    unRegister: function(tween, index){
                                                                                        tween._onComplete.fire();
                                                                                        index = index || getIndex(tween);
                                                                                        if (index != -1) {
                                                                                            queue.splice(index, 1);
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 2 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1691..1701

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

                                                                        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 (v) {
                                                                                                try{
                                                                                                    scope = v[ADJ_SCOPE] ? (v[ADJ_SCOPE] === true ? v[OBJ] : v[ADJ_SCOPE]) :  win;
                                                                                                    v[FN].call(scope, EU.getEvent(e), v[OBJ]);
                                                                                                }catch(ex){}
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 2 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1075..1080

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

                                                                        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

                                                                                var translateValues = function(val, start) {
                                                                                    var pageXY = EXTLIB.Dom.getXY(this.el);
                                                                                    return [val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1]];
                                                                                };
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 2 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1917..1920

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

                                                                        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

                                                                                    var me = this,
                                                                                        a = this.attributes[attr],
                                                                                        to = a.to,
                                                                                        by = a.by,
                                                                                        from = a.from,
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 2 hrs to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1543..1550

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

                                                                        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

                                                                                    getAttr: function(attr){
                                                                                        var me = this,
                                                                                            getAttr = superclass.getAttr;
                                                                        
                                                                                        return pointsRe.test(attr) ? [getAttr.call(me, 'left'), getAttr.call(me, 'top')] : getAttr.call(me, attr);
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1848..1853

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

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

                                                                        Ext.applyIf(String, {
                                                                            /**
                                                                             * Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens.  Each
                                                                             * token must be unique, and must increment in the format {0}, {1}, etc.  Example usage:
                                                                             * <pre><code>
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 3 other locations - About 1 hr to fix
                                                                        manager/assets/ext3/adapter/jquery/ext-jquery-adapter-debug.js on lines 1458..1479
                                                                        manager/assets/ext3/adapter/prototype/ext-prototype-adapter-debug.js on lines 1458..1479
                                                                        manager/assets/ext3/adapter/yui/ext-yui-adapter-debug.js on lines 1458..1479

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

                                                                        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

                                                                                setAttr: function(attr, val, unit) {
                                                                                    if (noNegatives.test(attr) && val < 0) {
                                                                                        val = 0;
                                                                                    }
                                                                                    Ext.fly(this.el, '_anim').setStyle(attr, val + unit);
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1504..1509

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

                                                                        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

                                                                            var EXTLIB = Ext.lib,
                                                                                noNegatives = /width|height|opacity|padding/i,
                                                                                offsetAttribute = /^((width|height)|(top|left))$/,
                                                                                defaultUnit = /width|height|top$|bottom$|left$|right$/i,
                                                                                offsetUnit =  /\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i,
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1459..1469

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

                                                                        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

                                                                            function getConnectionObject() {
                                                                                var o;
                                                                        
                                                                                try {
                                                                                    if (o = createXhrObject(pub.transactionId)) {
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1313..1324

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

                                                                        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

                                                                                getViewportWidth : function() {
                                                                                    return !Ext.isStrict && !Ext.isOpera ? doc.body.clientWidth :
                                                                                           Ext.isIE9m ? doc.documentElement.clientWidth : self.innerWidth;
                                                                                },
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 575..578

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

                                                                        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

                                                                                onAvailable : function(p_id, p_fn, p_obj, p_override) {
                                                                                    onAvailStack.push({
                                                                                        id:         p_id,
                                                                                        fn:         p_fn,
                                                                                        obj:        p_obj,
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 870..880

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

                                                                        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 (win.addEventListener) {
                                                                                        ret = function(el, eventName, fn, capture) {
                                                                                            if (eventName == 'mouseenter') {
                                                                                                fn = fn.createInterceptor(checkRelatedTarget);
                                                                                                el.addEventListener(MOUSEOVER, fn, (capture));
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 701..721

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

                                                                        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

                                                                                stopPropagation : function(ev) {
                                                                                    ev = ev.browserEvent || ev;
                                                                                    if (ev.stopPropagation) {
                                                                                        ev.stopPropagation();
                                                                                    } else {
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 4 other locations - About 1 hr to fix
                                                                        manager/assets/ext3/adapter/jquery/ext-jquery-adapter-debug.js on lines 1874..1881
                                                                        manager/assets/ext3/adapter/jquery/ext-jquery-adapter-debug.js on lines 1883..1890
                                                                        setup/assets/js/ext-core-debug.js on lines 975..982
                                                                        setup/assets/js/ext-core-debug.js on lines 984..991

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

                                                                        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

                                                                            var superclass = EXTLIB.ColorAnim.superclass,
                                                                                colorRE = /color$/i,
                                                                                transparentRE = /^transparent|rgba\(0, 0, 0, 0\)$/,
                                                                                rgbRE = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,
                                                                                hexRE= /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 2067..2075

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

                                                                        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

                                                                                    var p, 
                                                                                        pe, 
                                                                                        b,
                                                                                        bt, 
                                                                                        bl,     
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 589..600

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

                                                                        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 (win.removeEventListener) {
                                                                                        ret = function (el, eventName, fn, capture) {
                                                                                            if (eventName == 'mouseenter') {
                                                                                                eventName = MOUSEOVER;
                                                                                            } else if (eventName == 'mouseleave') {
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 727..742

                                                                        Duplicated Code

                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                        Tuning

                                                                        This issue has a mass of 59.

                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                        Refactorings

                                                                        Further Reading

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

                                                                                if (!coord && coord !== 0) {
                                                                                    coord = ev['client' + xy] || 0;
                                                                        
                                                                                    if (Ext.isIE) {
                                                                                        coord += getScroll()[xy == "X" ? 0 : 1];
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 858..864

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

                                                                        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

                                                                                        val = 'rgb(' + floor(val[0]) + ',' + floor(val[1]) + ',' + floor(val[2]) + ')';
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 2127..2127

                                                                        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,len=start.length; i<len; i++) {
                                                                                                end[i] = start[i] + end[i];
                                                                                            }
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        manager/assets/ext3/adapter/ext/ext-base-debug.js on lines 2676..2678

                                                                        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,len=start.length; i<len; i++) {
                                                                                                end[i] = start[i] + by[i];
                                                                                            }
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 1 hr to fix
                                                                        manager/assets/ext3/adapter/ext/ext-base-debug.js on lines 3270..3272

                                                                        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

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

                                                                            EXTLIB.Anim.color = function(el, args, duration, easing, cb, scope) {
                                                                                return EXTLIB.Anim.run(el, args, duration, easing, cb, scope, EXTLIB.ColorAnim);
                                                                            };
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 55 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 2057..2059

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

                                                                        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

                                                                                getViewportHeight: function(){
                                                                                    return Ext.isIE9m ? 
                                                                                           (Ext.isStrict ? doc.documentElement.clientHeight : doc.body.clientHeight) :
                                                                                           self.innerHeight;
                                                                                },
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 55 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 569..573

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

                                                                        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

                                                                                    registerElement: function(tween){
                                                                                        queue.push(tween);
                                                                                        ++tweenCount;
                                                                                        tween._onStart.fire();
                                                                                        me.start();
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 50 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1684..1689

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

                                                                        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

                                                                            function startInterval() {
                                                                                if(!_interval){
                                                                                    var callback = function() {
                                                                                        _tryPreloadAttach();
                                                                                    };
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 50 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 839..846

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

                                                                        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

                                                                            function fly(el) {
                                                                                if (!libFlyweight) {
                                                                                    libFlyweight = new Ext.Element.Flyweight();
                                                                                }
                                                                                libFlyweight.dom = el;
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 45 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 518..524

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

                                                                        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

                                                                                function setTheHeaders(conn, headers){
                                                                                    for (prop in headers) {
                                                                                        if (headers.hasOwnProperty(prop)) {
                                                                                            conn.setRequestHeader(prop, headers[prop]);
                                                                                        }
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 45 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1122..1128

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

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

                                                                                getDocumentHeight: function() {            
                                                                                    return MAX(!isCSS1 ? doc.body.scrollHeight : doc.documentElement.scrollHeight, this.getViewportHeight());
                                                                                },
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 3 other locations - About 40 mins to fix
                                                                        manager/assets/ext3/adapter/ext/ext-base-debug.js on lines 1739..1741
                                                                        setup/assets/js/ext-core-debug.js on lines 561..563
                                                                        setup/assets/js/ext-core-debug.js on lines 565..567

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

                                                                        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

                                                                                getTarget : function(ev) {
                                                                                    ev = ev.browserEvent || ev;
                                                                                    return this.resolveTextNode(ev.target || ev.srcElement);
                                                                                },
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 40 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 926..929

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

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

                                                                                getDocumentWidth: function() {            
                                                                                    return MAX(!isCSS1 ? doc.body.scrollWidth : doc.documentElement.scrollWidth, this.getViewportWidth());
                                                                                },
                                                                        Severity: Major
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 3 other locations - About 40 mins to fix
                                                                        manager/assets/ext3/adapter/ext/ext-base-debug.js on lines 1735..1737
                                                                        setup/assets/js/ext-core-debug.js on lines 561..563
                                                                        setup/assets/js/ext-core-debug.js on lines 565..567

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

                                                                        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

                                                                                isCallInProgress : function(o) {
                                                                                    // if there is a connection and readyState is not 0 or 4
                                                                                    return o.conn && !{0:true,4:true}[o.conn.readyState];
                                                                                }
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 40 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1451..1454

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

                                                                        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

                                                                            EXTLIB.ColorAnim = function(el, attributes, duration, method) {
                                                                                EXTLIB.ColorAnim.superclass.constructor.call(this, el, attributes, duration, method);
                                                                            };
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 35 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 2061..2063

                                                                        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

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

                                                                                    Ext.apply(ra, {
                                                                                        start: start,
                                                                                        end: end,
                                                                                        unit: isset(unit) ? unit : me.getDefaultUnit(attr)
                                                                                    });
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 35 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1570..1574

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

                                                                        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

                                                                                doMethod: function(attr, start, end) {
                                                                                    var me = this;
                                                                                    return me.method(me.curFrame, start, end - start, me.totalFrames);
                                                                                },
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 35 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1498..1501

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

                                                                        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

                                                                                getCharCode : function(ev) {
                                                                                    ev = ev.browserEvent || ev;
                                                                                    return ev.charCode || ev.keyCode || 0;
                                                                                },
                                                                        Severity: Minor
                                                                        Found in manager/assets/ext3/adapter/ext/ext-base-debug.js and 1 other location - About 30 mins to fix
                                                                        setup/assets/js/ext-core-debug.js on lines 1008..1011

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

                                                                        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