kuasha/cosmos

View on GitHub
samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js

Summary

Maintainability
F
1 yr
Test Coverage

File worker-css.js has 7246 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"no use strict";
;(function(window) {
if (typeof window.window != "undefined" && window.document) {
    return;
}
Severity: Major
Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 3 wks to fix

    Function prototype has 1270 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Parser.prototype = function(){
    
        var proto = new EventTarget(),  //new prototype
            prop,
            additions =  {
    Severity: Major
    Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 6 days to fix

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

          init: function (parser, reporter) {
              var rule = this,
                  compatiblePrefixes,
                  properties,
                  prop,
      Severity: Major
      Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 6 hrs to fix

        Function PropertyValuePart has 118 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function PropertyValuePart(text, line, col){
        
            SyntaxUnit.call(this, text, line, col, Parser.PROPERTY_VALUE_PART_TYPE);
            this.type = "unknown";
        
        
        Severity: Major
        Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 4 hrs to fix

          Function CSSLint has 113 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var CSSLint = (function(){
          
              var rules           = [],
                  formatters      = [],
                  embeddedRuleset = /\/\*csslint([^\*]*)\*\//,
          Severity: Major
          Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 4 hrs to fix

            Function _stylesheet has 105 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        _stylesheet: function(){
            
                            var tokenStream = this._tokenStream,
                                charset     = null,
                                count,
            Severity: Major
            Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 4 hrs to fix

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

                  init: function(parser, reporter){
                      var rule = this,
                          properties,
                          num,
                          propertiesToCheck = {
              Severity: Major
              Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 3 hrs to fix

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

                    _getToken: function(channel){
                
                        var c,
                            reader = this._reader,
                            token   = null,
                Severity: Major
                Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 3 hrs to fix

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

                      init: function(parser, reporter){
                          var rule = this;
                  
                          var propertiesToCheck = {
                                  display: 1,
                  Severity: Major
                  Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 3 hrs to fix

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

                        init: function(parser, reporter){
                            var rule = this,
                                widthProperties = {
                                    border: 1,
                                    "border-left": 1,
                    Severity: Major
                    Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 2 hrs to fix

                      Function onChange has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          this.onChange = function(e) {
                              var delta = e.data;
                              var range = delta.range;
                      
                              if (range.start.row == range.end.row && range.start.row != this.row)
                      Severity: Major
                      Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 2 hrs to fix

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

                            init: function(parser, reporter){
                                var rule = this,
                                    lastProperty,
                                    propertiesToCheck = {
                                        color: 1,
                        Severity: Major
                        Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 2 hrs to fix

                          Function _simple_selector_sequence has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                      _simple_selector_sequence: function(){
                          
                                          var tokenStream = this._tokenStream,
                                              elementName = null,
                                              modifiers   = [],
                          Severity: Major
                          Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 2 hrs to fix

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

                                init: function(parser, reporter){
                                    var rule = this,
                                        prop, i, len,
                                        propertiesToCheck = {},
                                        properties,
                            Severity: Major
                            Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 2 hrs to fix

                              Function <bg-position></bg-position> has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      "<bg-position>": function(expression){
                                          var types   = this,
                                              result  = false,
                                              numeric = "<percentage> | <length>",
                                              xDir    = "left | right",
                              Severity: Major
                              Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 2 hrs to fix

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

                                            _term: function(){
                                
                                                var tokenStream = this._tokenStream,
                                                    unary       = null,
                                                    value       = null,
                                Severity: Major
                                Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 2 hrs to fix

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

                                      init: function(parser, reporter){
                                          var rule = this;
                                  
                                          var headings =  {
                                                  h1: 0,

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

                                        get: function(channel){
                                    
                                            var tokenInfo   = this._tokenData,
                                                reader      = this._reader,
                                                value,

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

                                          init: function(parser, reporter){
                                              var rule = this,
                                                  lastRule;
                                      
                                              function startRule(event){

                                        Function splice has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                Array.prototype.splice = function(pos, removeCount){
                                                    var length = this.length;
                                                    if (pos > 0) {
                                                        if (pos > length)
                                                            pos = length;

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

                                                      _selector: function(){
                                          
                                                          var tokenStream = this._tokenStream,
                                                              selector    = [],
                                                              nextSelector = null,

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

                                                api.verify = function(text, ruleset){
                                            
                                                    var i       = 0,
                                                        len     = rules.length,
                                                        reporter,

                                              Function calculate has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                              Specificity.calculate = function(selector){
                                              
                                                  var i, len,
                                                      part,
                                                      b=0, c=0, d=0;

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

                                                            _readDeclarations: function(checkStart, readMargins){
                                                                var tokenStream = this._tokenStream,
                                                                    tt;
                                                
                                                
                                                

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

                                                              _ruleset: function(){
                                                  
                                                                  var tokenStream = this._tokenStream,
                                                                      tt,
                                                                      selectors;

                                                    Function _media_query has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                                _media_query: function(){
                                                                    var tokenStream = this._tokenStream,
                                                                        type        = null,
                                                                        ident       = null,
                                                                        token       = null,

                                                      Function _declaration has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                                  _declaration: function(){
                                                      
                                                                      var tokenStream = this._tokenStream,
                                                                          property    = null,
                                                                          expr        = null,

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

                                                            init: function(parser, reporter){
                                                                var rule = this,
                                                                    classes = {};
                                                                    
                                                                parser.addListener("startrule", function(event){

                                                          Function _keyframes has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                                      _keyframes: function(){
                                                                          var tokenStream = this._tokenStream,
                                                                              token,
                                                                              tt,
                                                                              name,

                                                            Function multiProperty has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                multiProperty: function (types, expression, comma, max) {
                                                            
                                                                    var result      = false,
                                                                        value       = expression.value,
                                                                        count       = 0,

                                                              Function importantToken has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                  importantToken: function(first, startLine, startCol){
                                                                      var reader      = this._reader,
                                                                          important   = first,
                                                                          tt          = Tokens.CHAR,
                                                                          temp,

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

                                                                    init: function(parser, reporter){
                                                                        var rule = this,
                                                                            gradients;
                                                                
                                                                        parser.addListener("startrule", function(){

                                                                  Function groupProperty has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                      groupProperty: function (types, expression, comma) {
                                                                  
                                                                          var result      = false,
                                                                              value       = expression.value,
                                                                              typeCount   = types.split("||").length,

                                                                    Function _negation_arg has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                                _negation_arg: function(){
                                                                    
                                                                                    var tokenStream = this._tokenStream,
                                                                                        args        = [
                                                                                            this._type_selector,

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

                                                                      window.define = function(id, deps, factory) {
                                                                          if (arguments.length == 2) {
                                                                              factory = deps;
                                                                              if (typeof id != "string") {
                                                                                  deps = id;

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

                                                                                    _media: function(){
                                                                                        var tokenStream     = this._tokenStream,
                                                                                            line,
                                                                                            col,
                                                                                            mediaList;//       = [];

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

                                                                                      _page: function(){
                                                                                          var tokenStream = this._tokenStream,
                                                                                              line,
                                                                                              col,
                                                                                              identifier  = null,

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

                                                                                        _function: function(){
                                                                            
                                                                                            var tokenStream = this._tokenStream,
                                                                                                functionText = null,
                                                                                                expr        = null,

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

                                                                                  init: function(parser, reporter){
                                                                                      var rule = this,
                                                                                          count = 0,
                                                                                          fontFaceRule = false,
                                                                                          firstSrc     = true,

                                                                                Function formatResults has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                    formatResults: function(results, filename, options) {
                                                                                
                                                                                        var messages = results.messages,
                                                                                            output = [],
                                                                                            tests = {

                                                                                  Function reduce has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                      Array.prototype.reduce = function reduce(fun /*, initial*/) {
                                                                                          var object = toObject(this),
                                                                                              self = splitString && _toString(this) == "[object String]" ?
                                                                                                  this.split("") :
                                                                                                  object,

                                                                                    Function defineProperty has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                        Object.defineProperty = function defineProperty(object, property, descriptor) {
                                                                                            if ((typeof object != "object" && typeof object != "function") || object === null)
                                                                                                throw new TypeError(ERR_NON_OBJECT_TARGET + object);
                                                                                            if ((typeof descriptor != "object" && typeof descriptor != "function") || descriptor === null)
                                                                                                throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);

                                                                                      Function reduceRight has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                          Array.prototype.reduceRight = function reduceRight(fun /*, initial*/) {
                                                                                              var object = toObject(this),
                                                                                                  self = splitString && _toString(this) == "[object String]" ?
                                                                                                      this.split("") :
                                                                                                      object,

                                                                                        Function border-image-slice has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                            "border-image-slice"            : function(expression) {
                                                                                        
                                                                                                var valid   = false,
                                                                                                    numeric = "<number> | <percentage>",
                                                                                                    fill    = false,

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

                                                                                              validate: function(property, value){
                                                                                                  var name        = property.toString().toLowerCase(),
                                                                                                      parts       = value.parts,
                                                                                                      expression  = new PropertyValueIterator(value),
                                                                                                      spec        = Properties[name],

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

                                                                                                        _ie_function: function(){
                                                                                            
                                                                                                            var tokenStream = this._tokenStream,
                                                                                                                functionText = null,
                                                                                                                expr        = null,

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

                                                                                                  init: function(parser, reporter){
                                                                                                      var rule = this;
                                                                                                      parser.addListener("startrule", function(event){
                                                                                                          var selectors = event.selectors,
                                                                                                              selector,

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

                                                                                                    function updateValues(part){
                                                                                                
                                                                                                        var i, j, len, num,
                                                                                                            elementName = part.elementName ? part.elementName.text : "",
                                                                                                            modifier;

                                                                                                  Function border-radius has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                      "border-radius"                 : function(expression) {
                                                                                                  
                                                                                                          var valid   = false,
                                                                                                              simple = "<length> | <percentage> | inherit",
                                                                                                              slash   = false,

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

                                                                                                            function endRule(){
                                                                                                    
                                                                                                                var display = properties.display ? properties.display.value : null;
                                                                                                                if (display){
                                                                                                                    switch(display){

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

                                                                                                                  _attrib: function(){
                                                                                                      
                                                                                                                      var tokenStream = this._tokenStream,
                                                                                                                          value       = null,
                                                                                                                          ns,

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

                                                                                                            Function.prototype.bind = function bind(that) { // .length is 1
                                                                                                                var target = this;
                                                                                                                if (typeof target != "function") {
                                                                                                                    throw new TypeError("Function.prototype.bind called on incompatible " + target);
                                                                                                                }

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

                                                                                                              unicodeRangeToken: function(first, startLine, startCol){
                                                                                                                  var reader  = this._reader,
                                                                                                                      value   = first,
                                                                                                                      temp,
                                                                                                                      tt      = Tokens.CHAR;

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

                                                                                                                formatResults: function(results, filename, options) {
                                                                                                                    var messages = results.messages,
                                                                                                                        output = "";
                                                                                                                    options = options || {};
                                                                                                            
                                                                                                            

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

                                                                                                                          _namespace: function(emit){
                                                                                                              
                                                                                                                              var tokenStream = this._tokenStream,
                                                                                                                                  line,
                                                                                                                                  col,

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

                                                                                                                    init: function(parser, reporter){
                                                                                                                        var rule = this;
                                                                                                                        parser.addListener("startrule", function(event){
                                                                                                                            var selectors = event.selectors,
                                                                                                                                selector,

                                                                                                                  Function readURI has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                      readURI: function(first){
                                                                                                                          var reader  = this._reader,
                                                                                                                              uri     = first,
                                                                                                                              inner   = "",
                                                                                                                              c       = reader.peek();

                                                                                                                    Function <shadow></shadow> has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                            "<shadow>": function(expression) {
                                                                                                                                var result  = false,
                                                                                                                                    count   = 0,
                                                                                                                                    inset   = false,
                                                                                                                                    color   = false,

                                                                                                                      Function numberToken has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                      Open

                                                                                                                          numberToken: function(first, startLine, startCol){
                                                                                                                              var reader  = this._reader,
                                                                                                                                  value   = this.readNumber(first),
                                                                                                                                  ident,
                                                                                                                                  tt      = Tokens.NUMBER,

                                                                                                                        Function delayedCall has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                        exports.delayedCall = function(fcn, defaultTimeout) {
                                                                                                                            var timer = null;
                                                                                                                            var callback = function() {
                                                                                                                                timer = null;
                                                                                                                                fcn();

                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                          Open

                                                                                                                                          if (end.column >= column)
                                                                                                                                              column = start.column;
                                                                                                                                          else
                                                                                                                                              column = Math.max(0, column - (end.column - start.column));
                                                                                                                          Severity: Major
                                                                                                                          Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                            Open

                                                                                                                                                        if (modifier.type == "class"){
                                                                                                                                                            classCount++;
                                                                                                                                                        }
                                                                                                                            Severity: Major
                                                                                                                            Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                              Open

                                                                                                                                              } else if (tailNewPos > tailOldPos) { // case B
                                                                                                                                                  for (i = tailCount; i--; ) {
                                                                                                                                                      this[tailNewPos+i] = this[tailOldPos+i];
                                                                                                                                                  }
                                                                                                                                              } // else, add == remove (nothing to do)
                                                                                                                              Severity: Major
                                                                                                                              Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                Open

                                                                                                                                                    if (ValidationTypes.isAny(expression, xDir + " | " + yDir)) {
                                                                                                                                                        result = true;
                                                                                                                                                        ValidationTypes.isAny(expression, numeric);
                                                                                                                                                    }
                                                                                                                                Severity: Major
                                                                                                                                Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                  Open

                                                                                                                                              if (start.row <= row) {
                                                                                                                                                  if (end.row <= row)
                                                                                                                                                      row -= end.row - start.row;
                                                                                                                                                  else {
                                                                                                                                                      row = start.row;
                                                                                                                                  Severity: Major
                                                                                                                                  Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                    Open

                                                                                                                                                                    if (combinator !== null){
                                                                                                                                                                        this._unexpectedToken(tokenStream.LT(1));
                                                                                                                                                                    }
                                                                                                                                    Severity: Major
                                                                                                                                    Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                      Open

                                                                                                                                                              if (temp.length == 1){
                                                                                                                                                                  reader.reset();
                                                                                                                                                              } else {
                                                                                                                                                                  value += temp;
                                                                                                                                                              }
                                                                                                                                      Severity: Major
                                                                                                                                      Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                        Open

                                                                                                                                                                    if (CSSLint.Util.indexOf(propertyGroups[prop].actual, name.text) === -1) {
                                                                                                                                                                        propertyGroups[prop].actual.push(name.text);
                                                                                                                                                                        propertyGroups[prop].actualNodes.push(name);
                                                                                                                                                                    }
                                                                                                                                        Severity: Major
                                                                                                                                        Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                          Open

                                                                                                                                                              for (var i = 0; i < tailCount; ++i) {
                                                                                                                                                                  this[tailNewPos+i] = this[tailOldPos+i];
                                                                                                                                                              }
                                                                                                                                          Severity: Major
                                                                                                                                          Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                            Open

                                                                                                                                                                        if (classCount > 1){
                                                                                                                                                                            reporter.report("Don't use adjoining classes.", part.line, part.col, rule);
                                                                                                                                                                        }
                                                                                                                                            Severity: Major
                                                                                                                                            Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                              Open

                                                                                                                                                                              if (combinator !== null){
                                                                                                                                                                                  selector.push(combinator);
                                                                                                                                                                              } else {
                                                                                                                                                                                  selector.push(ws);
                                                                                                                                                                              }
                                                                                                                                              Severity: Major
                                                                                                                                              Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                Open

                                                                                                                                                                        if (ValidationTypes.isAny(expression, xDir)) {
                                                                                                                                                                                result = true;
                                                                                                                                                                                ValidationTypes.isAny(expression, numeric);
                                                                                                                                                                        } else if (ValidationTypes.isAny(expression, "center")) {
                                                                                                                                                                            result = true;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                              if (!propertyGroups[prop]) {
                                                                                                                                                                                  propertyGroups[prop] = {
                                                                                                                                                                                      full : variations.slice(0),
                                                                                                                                                                                      actual : [],
                                                                                                                                                                                      actualNodes: []
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                    Open

                                                                                                                                                                                if (CSSLint.Util.indexOf(actual, item) === -1) {
                                                                                                                                                                                    propertiesSpecified = (actual.length === 1) ? actual[0] : (actual.length == 2) ? actual.join(" and ") : actual.join(", ");
                                                                                                                                                                                    reporter.report("The property " + item + " is compatible with " + propertiesSpecified + " and should be included as well.", value.actualNodes[0].line, value.actualNodes[0].col, rule); 
                                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

                                                                                                                                                                          for (i = 0; i < add; ++i) {
                                                                                                                                                                              this[pos+i] = insert[i];
                                                                                                                                                                          }
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                                    if (!(prop == "padding" && value.parts.length === 2 && value.parts[0].value === 0)){
                                                                                                                                                                                        reporter.report("Using height with " + prop + " can sometimes make elements larger than you expect.", properties[prop].line, properties[prop].col, rule);
                                                                                                                                                                                    }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                      } else if (start.row !== end.row && start.row < row) {
                                                                                                                                                                          if (end.row === row)
                                                                                                                                                                              column = Math.max(0, column - end.column) + start.column;
                                                                                                                                                                          row -= (end.row - start.row);
                                                                                                                                                                      } else if (end.row === row) {
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                        if (!(prop == "padding" && value.parts.length === 2 && value.parts[1].value === 0)){
                                                                                                                                                                                            reporter.report("Using width with " + prop + " can sometimes make elements larger than you expect.", properties[prop].line, properties[prop].col, rule);
                                                                                                                                                                                        }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                                          if (part.elementName && modifier.type == "id"){
                                                                                                                                                                                              reporter.report("Element (" + part + ") is overqualified, just use " + modifier + " without element name.", part.line, part.col, rule);
                                                                                                                                                                                          } else if (modifier.type == "class"){
                                                                                                                                                                                              
                                                                                                                                                                                              if (!classes[modifier]){
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                            if (modifier.type == "attribute"){
                                                                                                                                                                                                if (/([\~\|\^\$\*]=)/.test(modifier)){
                                                                                                                                                                                                    reporter.report("Attribute selectors with " + RegExp.$1 + " are slow!", modifier.line, modifier.col, rule);
                                                                                                                                                                                                }
                                                                                                                                                                                            }
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                              if (tokenStream.LA(3) == Tokens.EQUALS && this.options.ieFilters){
                                                                                                                                                                                                  value = this._ie_function();
                                                                                                                                                                                              } else {
                                                                                                                                                                                                  value = this._function();
                                                                                                                                                                                              }
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                                                if (/([^\)]+)\(/.test(parts[i])){
                                                                                                                                                                                                    colorType = RegExp.$1.toUpperCase();
                                                                                                                                                                                                }
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                                  if (modifier.type == "id"){
                                                                                                                                                                                                      idCount++;
                                                                                                                                                                                                  }
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                                                    if (!lastProperty || (lastProperty.property.text.toLowerCase() != name || lastProperty.colorType != "compat")){
                                                                                                                                                                                                        reporter.report("Fallback " + name + " (hex or RGB) should precede " + colorType + " " + name + ".", event.line, event.col, rule);
                                                                                                                                                                                                    }
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 45 mins to fix

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

                                                                                                                                                                          function SelectorPart(elementName, modifiers, text, line, col){
                                                                                                                                                                          Severity: Minor
                                                                                                                                                                          Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 35 mins to fix

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

                                                                                                                                                                                createToken: function(tt, value, startLine, startCol, options){
                                                                                                                                                                            Severity: Minor
                                                                                                                                                                            Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 35 mins to fix

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

                                                                                                                                                                              function MediaQuery(modifier, mediaType, features, line, col){
                                                                                                                                                                              Severity: Minor
                                                                                                                                                                              Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 35 mins to fix

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

                                                                                                                                                                                window.onerror = function(message, file, line, col, err) {
                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 35 mins to fix

                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                  Open

                                                                                                                                                                                                  return 0;
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 30 mins to fix

                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                    Open

                                                                                                                                                                                                    return -1;
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 30 mins to fix

                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                      Open

                                                                                                                                                                                                      return 42;
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 30 mins to fix

                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                        Open

                                                                                                                                                                                                    return column <= this.end.column ? 0 : 1;
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 30 mins to fix

                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                          Open

                                                                                                                                                                                                  return 0;
                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                          Found in samples/adminpanel/app/bower_components/ace-builds/src/worker-css.js - About 30 mins to fix

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

                                                                                                                                                                                            define("ace/mode/css/csslint",["require","exports","module"], function(require, exports, module) {
                                                                                                                                                                                            var parserlib = {};
                                                                                                                                                                                            (function(){
                                                                                                                                                                                            function EventTarget(){
                                                                                                                                                                                                this._listeners = {};
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-css.js on lines 1321..7622

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

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

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

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

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

                                                                                                                                                                                            Refactorings

                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                            define("ace/lib/es5-shim",["require","exports","module"], function(require, exports, module) {
                                                                                                                                                                                            
                                                                                                                                                                                            function Empty() {}
                                                                                                                                                                                            
                                                                                                                                                                                            if (!Function.prototype.bind) {
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-coffee.js on lines 6894..7589
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-html.js on lines 10822..11517
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 9724..10419
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-json.js on lines 1613..2308
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-lua.js on lines 2849..3544
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-php.js on lines 6242..6937

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

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

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

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

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

                                                                                                                                                                                            Refactorings

                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                            define("ace/document",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/range","ace/anchor"], function(require, exports, module) {
                                                                                                                                                                                            "use strict";
                                                                                                                                                                                            
                                                                                                                                                                                            var oop = require("./lib/oop");
                                                                                                                                                                                            var EventEmitter = require("./lib/event_emitter").EventEmitter;
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-coffee.js on lines 726..1083
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-html.js on lines 913..1270
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 726..1083
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-json.js on lines 726..1083
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-lua.js on lines 726..1083
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-php.js on lines 726..1083

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

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

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

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

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

                                                                                                                                                                                            Refactorings

                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                            define("ace/range",["require","exports","module"], function(require, exports, module) {
                                                                                                                                                                                            "use strict";
                                                                                                                                                                                            var comparePoints = function(p1, p2) {
                                                                                                                                                                                                return p1.row - p2.row || p1.column - p2.column;
                                                                                                                                                                                            };
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-coffee.js on lines 338..575
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-html.js on lines 525..762
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 338..575
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-json.js on lines 338..575
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-lua.js on lines 338..575
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-php.js on lines 338..575

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

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

                                                                                                                                                                                            ;(function(window) {
                                                                                                                                                                                            if (typeof window.window != "undefined" && window.document) {
                                                                                                                                                                                                return;
                                                                                                                                                                                            }
                                                                                                                                                                                            
                                                                                                                                                                                            
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-coffee.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-css.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-html.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-json.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-lua.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-php.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-coffee.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-html.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-json.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-lua.js on lines 2..182
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-php.js on lines 2..182

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

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

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

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

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

                                                                                                                                                                                            Refactorings

                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                            define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"], function(require, exports, module) {
                                                                                                                                                                                            "use strict";
                                                                                                                                                                                            
                                                                                                                                                                                            var oop = require("./lib/oop");
                                                                                                                                                                                            var EventEmitter = require("./lib/event_emitter").EventEmitter;
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-coffee.js on lines 577..724
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-html.js on lines 764..911
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 577..724
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-json.js on lines 577..724
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-lua.js on lines 577..724
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-php.js on lines 577..724

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

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

                                                                                                                                                                                            define("ace/lib/lang",["require","exports","module"], function(require, exports, module) {
                                                                                                                                                                                            "use strict";
                                                                                                                                                                                            
                                                                                                                                                                                            exports.last = function(a) {
                                                                                                                                                                                                return a[a.length - 1];
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-coffee.js on lines 1085..1270
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-html.js on lines 212..397
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 1085..1270
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-json.js on lines 1085..1270
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-lua.js on lines 1085..1270
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-php.js on lines 1085..1270

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

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

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

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

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

                                                                                                                                                                                            Refactorings

                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                            define("ace/lib/event_emitter",["require","exports","module"], function(require, exports, module) {
                                                                                                                                                                                            "use strict";
                                                                                                                                                                                            
                                                                                                                                                                                            var EventEmitter = {};
                                                                                                                                                                                            var stopPropagation = function() { this.propagationStopped = true; };
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-coffee.js on lines 212..336
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-html.js on lines 399..523
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 212..336
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-json.js on lines 212..336
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-lua.js on lines 212..336
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-php.js on lines 212..336

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

                                                                                                                                                                                            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

                                                                                                                                                                                            define("ace/mode/css_worker",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/worker/mirror","ace/mode/css/csslint"], function(require, exports, module) {
                                                                                                                                                                                            "use strict";
                                                                                                                                                                                            
                                                                                                                                                                                            var oop = require("../lib/oop");
                                                                                                                                                                                            var lang = require("../lib/lang");
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-css.js on lines 7624..7690

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

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

                                                                                                                                                                                            define("ace/worker/mirror",["require","exports","module","ace/document","ace/lib/lang"], function(require, exports, module) {
                                                                                                                                                                                            "use strict";
                                                                                                                                                                                            
                                                                                                                                                                                            var Document = require("../document").Document;
                                                                                                                                                                                            var lang = require("../lib/lang");
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-coffee.js on lines 1272..1319
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-html.js on lines 1272..1319
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 1272..1319
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-json.js on lines 1272..1319
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-lua.js on lines 1272..1319
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-php.js on lines 1272..1319

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

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

                                                                                                                                                                                            define("ace/lib/oop",["require","exports","module"], function(require, exports, module) {
                                                                                                                                                                                            "use strict";
                                                                                                                                                                                            
                                                                                                                                                                                            exports.inherits = function(ctor, superCtor) {
                                                                                                                                                                                                ctor.super_ = superCtor;
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-coffee.js on lines 184..210
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-html.js on lines 184..210
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 184..210
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-json.js on lines 184..210
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-lua.js on lines 184..210
                                                                                                                                                                                            samples/adminpanel/app/bower_components/ace-builds/src/worker-php.js on lines 184..210

                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                            Tuning

                                                                                                                                                                                            This issue has a mass of 179.

                                                                                                                                                                                            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