WordPress/WordPress

View on GitHub
wp-includes/js/codemirror/csslint.js

Summary

Maintainability
F
6 mos
Test Coverage

Function CSSLint has a Cognitive Complexity of 2488 (exceeds 5 allowed). Consider refactoring.
Open

var CSSLint = (function(){
  var module = module || {},
      exports = exports || {};

/*!
Severity: Minor
Found in wp-includes/js/codemirror/csslint.js - About 1 mo to fix

Cognitive Complexity

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

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

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

Further reading

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

var CSSLint = (function(){
  var module = module || {},
      exports = exports || {};

/*!
Severity: Major
Found in wp-includes/js/codemirror/csslint.js - About 1 mo to fix

    Function parserlib has 4285 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var parserlib = (function () {
    var require;
    require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
    "use strict";
    
    
    Severity: Major
    Found in wp-includes/js/codemirror/csslint.js - About 3 wks to fix

      File csslint.js has 6554 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
      CSSLint v1.0.4
      Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
      
      Permission is hereby granted, free of charge, to any person obtaining a copy
      Severity: Major
      Found in wp-includes/js/codemirror/csslint.js - About 2 wks to fix

        Function 6 has 1491 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{"../util/SyntaxUnit":26,"./Parser":6}],6:[function(require,module,exports){
        "use strict";
        
        module.exports = Parser;
        
        
        Severity: Major
        Found in wp-includes/js/codemirror/csslint.js - About 1 wk to fix

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

          Parser.prototype = function() {
          
              var proto = new EventTarget(),  //new prototype
                  prop,
                  additions =  {
          Severity: Major
          Found in wp-includes/js/codemirror/csslint.js - About 1 wk to fix

            Function 17 has 586 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{"./Pseudos":12,"./SelectorPart":14}],17:[function(require,module,exports){
            "use strict";
            
            module.exports = TokenStream;
            
            
            Severity: Major
            Found in wp-includes/js/codemirror/csslint.js - About 2 days to fix

              Function 7 has 434 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{"../util/EventTarget":23,"../util/SyntaxError":25,"../util/SyntaxUnit":26,"./Combinator":2,"./MediaFeature":4,"./MediaQuery":5,"./PropertyName":8,"./PropertyValue":9,"./PropertyValuePart":11,"./Selector":13,"./SelectorPart":14,"./SelectorSubPart":15,"./TokenStream":17,"./Tokens":18,"./Validation":19}],7:[function(require,module,exports){
              "use strict";
              
              /* exported Properties */
              
              
              Severity: Major
              Found in wp-includes/js/codemirror/csslint.js - About 2 days to fix

                Function 21 has 313 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },{}],21:[function(require,module,exports){
                "use strict";
                
                var ValidationTypes = module.exports;
                
                
                Severity: Major
                Found in wp-includes/js/codemirror/csslint.js - About 1 day to fix

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

                  },{"../util/SyntaxUnit":26,"./Parser":6}],3:[function(require,module,exports){
                  "use strict";
                  
                  module.exports = Matcher;
                  
                  
                  Severity: Major
                  Found in wp-includes/js/codemirror/csslint.js - About 1 day to fix

                    Function clone has 184 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var clone = (function() {
                    'use strict';
                    
                    var nativeMap;
                    try {
                    Severity: Major
                    Found in wp-includes/js/codemirror/csslint.js - About 7 hrs to fix

                      Function 1 has 180 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
                      "use strict";
                      
                      /* exported Colors */
                      
                      
                      Severity: Major
                      Found in wp-includes/js/codemirror/csslint.js - About 7 hrs to fix

                        Function 11 has 174 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        },{}],11:[function(require,module,exports){
                        "use strict";
                        
                        module.exports = PropertyValuePart;
                        
                        
                        Severity: Major
                        Found in wp-includes/js/codemirror/csslint.js - About 6 hrs to fix

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

                          },{}],27:[function(require,module,exports){
                          "use strict";
                          
                          module.exports = TokenStreamBase;
                          
                          
                          Severity: Major
                          Found in wp-includes/js/codemirror/csslint.js - About 6 hrs to fix

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

                                init: function (parser, reporter) {
                                    "use strict";
                                    var rule = this,
                                        compatiblePrefixes,
                                        properties,
                            Severity: Major
                            Found in wp-includes/js/codemirror/csslint.js - About 6 hrs to fix

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

                              var CSSLint = (function() {
                                  "use strict";
                              
                                  var rules           = [],
                                      formatters      = [],
                              Severity: Major
                              Found in wp-includes/js/codemirror/csslint.js - About 6 hrs to fix

                                Function 18 has 144 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                },{"../util/TokenStreamBase":27,"./PropertyValuePart":11,"./Tokens":18}],18:[function(require,module,exports){
                                "use strict";
                                
                                var Tokens = module.exports = [
                                
                                
                                Severity: Major
                                Found in wp-includes/js/codemirror/csslint.js - About 5 hrs to fix

                                  Function clone has 132 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function clone(parent, circular, depth, prototype, includeNonEnumerable) {
                                    if (typeof circular === 'object') {
                                      depth = circular.depth;
                                      prototype = circular.prototype;
                                      includeNonEnumerable = circular.includeNonEnumerable;
                                  Severity: Major
                                  Found in wp-includes/js/codemirror/csslint.js - About 5 hrs to fix

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

                                    function PropertyValuePart(text, line, col, optionalHint) {
                                        var hint = optionalHint || {};
                                    
                                        SyntaxUnit.call(this, text, line, col, Parser.PROPERTY_VALUE_PART_TYPE);
                                    
                                    
                                    Severity: Major
                                    Found in wp-includes/js/codemirror/csslint.js - About 5 hrs to fix

                                      Function _clone has 116 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        function _clone(parent, depth) {
                                          // cloning null always returns null
                                          if (parent === null)
                                            return null;
                                      
                                      
                                      Severity: Major
                                      Found in wp-includes/js/codemirror/csslint.js - About 4 hrs to fix

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

                                                    _stylesheet: function() {
                                        
                                                        /*
                                                         * stylesheet
                                                         *  : [ CHARSET_SYM S* STRING S* ';' ]?
                                        Severity: Major
                                        Found in wp-includes/js/codemirror/csslint.js - About 4 hrs to fix

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

                                              init: function(parser, reporter) {
                                                  "use strict";
                                                  var rule = this,
                                                      properties,
                                                      num,
                                          Severity: Major
                                          Found in wp-includes/js/codemirror/csslint.js - About 4 hrs to fix

                                            Function 24 has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                            },{}],24:[function(require,module,exports){
                                            "use strict";
                                            
                                            module.exports = StringReader;
                                            
                                            
                                            Severity: Major
                                            Found in wp-includes/js/codemirror/csslint.js - About 3 hrs to fix

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

                                                  _getToken: function() {
                                              
                                                      var c,
                                                          reader = this._reader,
                                                          token   = null,
                                              Severity: Major
                                              Found in wp-includes/js/codemirror/csslint.js - About 3 hrs to fix

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

                                                    init: function(parser, reporter) {
                                                        "use strict";
                                                        var rule = this;
                                                
                                                        var propertiesToCheck = {
                                                Severity: Major
                                                Found in wp-includes/js/codemirror/csslint.js - About 3 hrs to fix

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

                                                      api.verify = function(text, ruleset) {
                                                  
                                                          var i = 0,
                                                              reporter,
                                                              lines,
                                                  Severity: Major
                                                  Found in wp-includes/js/codemirror/csslint.js - About 3 hrs to fix

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

                                                        init: function(parser, reporter) {
                                                            "use strict";
                                                            var rule = this,
                                                                widthProperties = {
                                                                    border: 1,
                                                    Severity: Major
                                                    Found in wp-includes/js/codemirror/csslint.js - About 3 hrs to fix

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

                                                      },{"../util/SyntaxUnit":26,"./Parser":6}],16:[function(require,module,exports){
                                                      "use strict";
                                                      
                                                      module.exports = Specificity;
                                                      
                                                      
                                                      Severity: Major
                                                      Found in wp-includes/js/codemirror/csslint.js - About 2 hrs to fix

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

                                                        Matcher.many = function(required) {
                                                            var ms = Array.prototype.slice.call(arguments, 1).reduce(function(acc, v) {
                                                                if (v.expand) {
                                                                    // Insert all of the options for the given complex rule as
                                                                    // individual options.
                                                        Severity: Major
                                                        Found in wp-includes/js/codemirror/csslint.js - About 2 hrs to fix

                                                          Function parse has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                          Matcher.parse = function(str) {
                                                              var reader, eat, expr, oror, andand, seq, mod, term, result;
                                                              reader = new StringReader(str);
                                                              eat = function(matcher) {
                                                                  var result = reader.readMatch(matcher);
                                                          Severity: Major
                                                          Found in wp-includes/js/codemirror/csslint.js - About 2 hrs to fix

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

                                                                        _term: function(inFunction) {
                                                            
                                                                            /*
                                                                             * term
                                                                             *   : unary_operator?
                                                            Severity: Major
                                                            Found in wp-includes/js/codemirror/csslint.js - About 2 hrs to fix

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

                                                                          _document: function() {
                                                                              /*
                                                                               * document
                                                                               *   : DOCUMENT_SYM S*
                                                                               *     _document_function [ ',' S* _document_function ]* S*
                                                              Severity: Major
                                                              Found in wp-includes/js/codemirror/csslint.js - About 2 hrs to fix

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

                                                                            _simple_selector_sequence: function() {
                                                                                /*
                                                                                 * simple_selector_sequence
                                                                                 *   : [ type_selector | universal ]
                                                                                 *     [ HASH | class | attrib | pseudo | negation ]*
                                                                Severity: Major
                                                                Found in wp-includes/js/codemirror/csslint.js - About 2 hrs to fix

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

                                                                      init: function(parser, reporter) {
                                                                          "use strict";
                                                                          var rule = this,
                                                                              prop, i, len,
                                                                              propertiesToCheck = {},
                                                                  Severity: Major
                                                                  Found in wp-includes/js/codemirror/csslint.js - About 2 hrs to fix

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

                                                                        init: function(parser, reporter) {
                                                                            "use strict";
                                                                            var rule = this,
                                                                                lastProperty,
                                                                                propertiesToCheck = {
                                                                    Severity: Major
                                                                    Found in wp-includes/js/codemirror/csslint.js - About 2 hrs to fix

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

                                                                          init: function(parser, reporter) {
                                                                              "use strict";
                                                                              var rule = this;
                                                                      
                                                                              var headings = {
                                                                      Severity: Minor
                                                                      Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                            init: function(parser, reporter) {
                                                                                "use strict";
                                                                                var rule = this,
                                                                                    lastRule;
                                                                        
                                                                        
                                                                        Severity: Minor
                                                                        Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                          },{}],19:[function(require,module,exports){
                                                                          "use strict";
                                                                          
                                                                          /* exported Validation */
                                                                          
                                                                          
                                                                          Severity: Minor
                                                                          Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                        _selector: function() {
                                                                                            /*
                                                                                             * selector
                                                                                             *   : simple_selector_sequence [ combinator simple_selector_sequence ]*
                                                                                             *   ;
                                                                            Severity: Minor
                                                                            Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                  get: function(channel) {
                                                                              
                                                                                      var tokenInfo   = this._tokenData,
                                                                                          i           =0,
                                                                                          token,
                                                                              Severity: Minor
                                                                              Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                            _media: function() {
                                                                                                /*
                                                                                                 * media
                                                                                                 *   : MEDIA_SYM S* media_query_list S* '{' S* ruleset* '}' S*
                                                                                                 *   ;
                                                                                Severity: Minor
                                                                                Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

                                                                                  Function result has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                      var result = new Matcher(function(expression) {
                                                                                          var seen = [], max = 0, pass = 0;
                                                                                          var success = function(matchCount) {
                                                                                              if (pass === 0) {
                                                                                                  max = Math.max(matchCount, max);
                                                                                  Severity: Minor
                                                                                  Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                    },{"./Colors":1,"./Combinator":2,"./Matcher":3,"./MediaFeature":4,"./MediaQuery":5,"./Parser":6,"./PropertyName":8,"./PropertyValue":9,"./PropertyValuePart":11,"./Selector":13,"./SelectorPart":14,"./SelectorSubPart":15,"./Specificity":16,"./TokenStream":17,"./Tokens":18,"./ValidationError":20}],23:[function(require,module,exports){
                                                                                    "use strict";
                                                                                    
                                                                                    module.exports = EventTarget;
                                                                                    
                                                                                    
                                                                                    Severity: Minor
                                                                                    Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

                                                                                      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;
                                                                                      Severity: Minor
                                                                                      Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                            stringToken: function(first, startLine, startCol) {
                                                                                                var delim   = first,
                                                                                                    string  = first,
                                                                                                    reader  = this._reader,
                                                                                                    tt      = Tokens.STRING,
                                                                                        Severity: Minor
                                                                                        Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                              init: function(parser, reporter) {
                                                                                                  "use strict";
                                                                                                  var rule = this,
                                                                                                      classes = {};
                                                                                          
                                                                                          
                                                                                          Severity: Minor
                                                                                          Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                        _ruleset: function() {
                                                                                                            /*
                                                                                                             * ruleset
                                                                                                             *   : selectors_group
                                                                                                             *     '{' S* declaration? [ ';' S* declaration? ]* '}' S*
                                                                                            Severity: Minor
                                                                                            Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                          _readDeclarations: function(checkStart, readMargins) {
                                                                                                              /*
                                                                                                               * Reads the pattern
                                                                                                               * S* '{' S* declaration [ ';' S* declaration ]* '}' S*
                                                                                                               * or
                                                                                              Severity: Minor
                                                                                              Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                            _media_query: function() {
                                                                                                                /*
                                                                                                                 * media_query
                                                                                                                 *   : [ONLY | NOT]? S* media_type S* [ AND S* expression ]*
                                                                                                                 *   | expression [ AND S* expression ]*
                                                                                                Severity: Minor
                                                                                                Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                              _declaration: function() {
                                                                                                  
                                                                                                                  /*
                                                                                                                   * declaration
                                                                                                                   *   : property ':' S* expr prio?
                                                                                                  Severity: Minor
                                                                                                  Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                _keyframes: function() {
                                                                                                    
                                                                                                                    /*
                                                                                                                     * keyframes:
                                                                                                                     *   : KEYFRAMES_SYM S* keyframe_name S* '{' S* keyframe_rule* '}' {
                                                                                                    Severity: Minor
                                                                                                    Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

                                                                                                      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,
                                                                                                      Severity: Minor
                                                                                                      Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                        },{"../util/SyntaxUnit":26,"./Parser":6}],10:[function(require,module,exports){
                                                                                                        "use strict";
                                                                                                        
                                                                                                        module.exports = PropertyValueIterator;
                                                                                                        
                                                                                                        
                                                                                                        Severity: Minor
                                                                                                        Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                              readEscape: function(first, unescape) {
                                                                                                                  var reader  = this._reader,
                                                                                                                      cssEscape = first || "",
                                                                                                                      i       = 0,
                                                                                                                      c       = reader.peek();
                                                                                                          Severity: Minor
                                                                                                          Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                init: function(parser, reporter) {
                                                                                                                    "use strict";
                                                                                                                    var rule = this,
                                                                                                                        gradients;
                                                                                                            
                                                                                                            
                                                                                                            Severity: Minor
                                                                                                            Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                          _page: function() {
                                                                                                                              /*
                                                                                                                               * page:
                                                                                                                               *    PAGE_SYM S* IDENT? pseudo_page? S*
                                                                                                                               *    '{' S* [ declaration | margin ]? [ ';' S* [ declaration | margin ]? ]* '}' S*
                                                                                                              Severity: Minor
                                                                                                              Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                            _function: function() {
                                                                                                                
                                                                                                                                /*
                                                                                                                                 * function
                                                                                                                                 *   : FUNCTION S* expr ')' S*
                                                                                                                Severity: Minor
                                                                                                                Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                              _negation_arg: function() {
                                                                                                                                  /*
                                                                                                                                   * negation_arg
                                                                                                                                   *   : type_selector | universal | HASH | class | attrib | pseudo
                                                                                                                                   *   ;
                                                                                                                  Severity: Minor
                                                                                                                  Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                        formatResults: function(results, filename, options) {
                                                                                                                            "use strict";
                                                                                                                            var messages = results.messages,
                                                                                                                                output = "";
                                                                                                                            options = options || {};
                                                                                                                    Severity: Minor
                                                                                                                    Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                          init: function(parser, reporter) {
                                                                                                                              "use strict";
                                                                                                                              var rule = this,
                                                                                                                                  fontFaceRule = false,
                                                                                                                                  firstSrc = true,
                                                                                                                      Severity: Minor
                                                                                                                      Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                            formatResults: function(results, filename/*, options*/) {
                                                                                                                                "use strict";
                                                                                                                        
                                                                                                                                var messages = results.messages,
                                                                                                                                    output = [],
                                                                                                                        Severity: Minor
                                                                                                                        Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                      _supports: function(emit) {
                                                                                                                                          /*
                                                                                                                                           * supports_rule
                                                                                                                                           *  : SUPPORTS_SYM S* supports_condition S* group_rule_body
                                                                                                                                           *  ;
                                                                                                                          Severity: Minor
                                                                                                                          Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                init: function(parser, reporter) {
                                                                                                                                    "use strict";
                                                                                                                            
                                                                                                                                    var rule = this;
                                                                                                                            
                                                                                                                            
                                                                                                                            Severity: Minor
                                                                                                                            Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

                                                                                                                              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;
                                                                                                                              Severity: Minor
                                                                                                                              Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                    init: function(parser, reporter) {
                                                                                                                                        "use strict";
                                                                                                                                        var rule = this;
                                                                                                                                        parser.addListener("startrule", function(event) {
                                                                                                                                            var selectors = event.selectors,
                                                                                                                                Severity: Minor
                                                                                                                                Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                      init: function(parser, reporter) {
                                                                                                                                          "use strict";
                                                                                                                                          var rule = this,
                                                                                                                                              properties;
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                                _ie_function: function() {
                                                                                                                                    
                                                                                                                                                    /* (My own extension)
                                                                                                                                                     * ie_function
                                                                                                                                                     *   : IE_FUNCTION S* IDENT '=' term [S* ','? IDENT '=' term]+ ')' S*
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                                  _attrib: function() {
                                                                                                                                                      /*
                                                                                                                                                       * attrib
                                                                                                                                                       *   : '[' S* [ namespace_prefix ]? IDENT S*
                                                                                                                                                       *         [ [ PREFIXMATCH |
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

                                                                                                                                        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) {
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                                      _namespace: function(emit) {
                                                                                                                                                          /*
                                                                                                                                                           * namespace
                                                                                                                                                           *   : NAMESPACE_SYM S* [namespace_prefix S*]? [STRING|URI] S* ';' S*
                                                                                                                                                           */
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

                                                                                                                                            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;
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                                  identOrFunctionToken: function(first, startLine, startCol) {
                                                                                                                                                      var reader  = this._reader,
                                                                                                                                                          ident   = this.readName(first),
                                                                                                                                                          tt      = Tokens.IDENT,
                                                                                                                                                          uriFns  = ["url(", "url-prefix(", "domain("],
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                                    init: function(parser, reporter) {
                                                                                                                                                        "use strict";
                                                                                                                                                        var rule = this;
                                                                                                                                                        parser.addListener("startrule", function(event) {
                                                                                                                                                            var selectors = event.selectors,
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                                              _pseudo: function() {
                                                                                                                                                  
                                                                                                                                                                  /*
                                                                                                                                                                   * pseudo
                                                                                                                                                                   *   : ':' ':'? [ IDENT | functional_pseudo ]
                                                                                                                                                  Severity: Minor
                                                                                                                                                  Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

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

                                                                                                                                                        readURI: function(first) {
                                                                                                                                                            var reader  = this._reader,
                                                                                                                                                                uri     = first,
                                                                                                                                                                inner   = "",
                                                                                                                                                                c       = reader.peek();
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

                                                                                                                                                      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,
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in wp-includes/js/codemirror/csslint.js - About 1 hr to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                                    if (classCount > 1){
                                                                                                                                                                                        reporter.report("Adjoining classes: "+selectors[i].text, part.line, part.col, rule);
                                                                                                                                                                                    }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.js - About 45 mins to fix

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                        if (unary === null) {
                                                                                                                                                                                            line = tokenStream.LT(1).startLine;
                                                                                                                                                                                            col = tokenStream.LT(1).startCol;
                                                                                                                                                                                        }
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in wp-includes/js/codemirror/csslint.js - About 45 mins to fix

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                          if (value === null) {
                                                                                                                                                                  
                                                                                                                                                                                              /*
                                                                                                                                                                                               * This checks for alpha(opacity=0) style of IE
                                                                                                                                                                                               * functions. IE_FUNCTION only presents progid: style.
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.js - About 45 mins to fix

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                                  if (modifier.type === "class") {
                                                                                                                                                                                                      classCount++;
                                                                                                                                                                                                  }
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.js - About 45 mins to fix

                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                            Open

                                                                                                                                                                                                    if (unary === null) {
                                                                                                                                                                                                        line = token.startLine;
                                                                                                                                                                                                        col = token.startCol;
                                                                                                                                                                                                    }
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.js - About 45 mins to fix

                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                Open

                                                                                                                                                                                                            if (modifier.type === "id") {
                                                                                                                                                                                                                idCount++;
                                                                                                                                                                                                            }
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.js - About 45 mins to fix

                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                            Open

                                                                                                                                                                                                                        if (modifier.type === "attribute" && (!part.elementName || part.elementName === "*")) {
                                                                                                                                                                                                                            reporter.report(rule.desc, part.line, part.col, rule);
                                                                                                                                                                                                                        }
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in wp-includes/js/codemirror/csslint.js - About 45 mins to fix

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

                                                                                                                                                                                              function clone(parent, circular, depth, prototype, includeNonEnumerable) {
                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.js - About 35 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 wp-includes/js/codemirror/csslint.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 wp-includes/js/codemirror/csslint.js - About 35 mins to fix

                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                              return allChildren[index];
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in wp-includes/js/codemirror/csslint.js - About 30 mins to fix

                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                            return child;
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in wp-includes/js/codemirror/csslint.js - About 30 mins to fix

                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                  return m;
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in wp-includes/js/codemirror/csslint.js - About 30 mins to fix

                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                        return m.braces(+min, +max);
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in wp-includes/js/codemirror/csslint.js - About 30 mins to fix

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

                                                                                                                                                                                                                                      do {
                                                                                                                                                                                                              
                                                                                                                                                                                                                                          if (this._readWhitespace()) {
                                                                                                                                                                                                                                              functionText += tokenStream.token().value;
                                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2785..2809

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                  do {
                                                                                                                                                                                                              
                                                                                                                                                                                                                                      if (this._readWhitespace()) {
                                                                                                                                                                                                                                          functionText += tokenStream.token().value;
                                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2732..2756

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                              CSSLint.addRule({
                                                                                                                                                                                                              
                                                                                                                                                                                                                  // rule information
                                                                                                                                                                                                                  id: "selector-max",
                                                                                                                                                                                                                  name: "Error when past the 4095 selector limit for IE",
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 9639..9663

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                              CSSLint.addRule({
                                                                                                                                                                                                              
                                                                                                                                                                                                                  // rule information
                                                                                                                                                                                                                  id: "selector-max-approaching",
                                                                                                                                                                                                                  name: "Warn when approaching the 4095 selector limit for IE",
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 9669..9693

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                              CSSLint.addRule({
                                                                                                                                                                                                              
                                                                                                                                                                                                                  // rule information
                                                                                                                                                                                                                  id: "underscore-property-hack",
                                                                                                                                                                                                                  name: "Disallow properties with an underscore prefix",
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 9834..9857

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                              CSSLint.addRule({
                                                                                                                                                                                                              
                                                                                                                                                                                                                  // rule information
                                                                                                                                                                                                                  id: "star-property-hack",
                                                                                                                                                                                                                  name: "Disallow properties with a star prefix",
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 9920..9943

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  htmlCommentStartToken: function(first, startLine, startCol) {
                                                                                                                                                                                                                      var reader      = this._reader,
                                                                                                                                                                                                                          text        = first;
                                                                                                                                                                                                              
                                                                                                                                                                                                                      reader.mark();
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 5034..5047

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  htmlCommentEndToken: function(first, startLine, startCol) {
                                                                                                                                                                                                                      var reader      = this._reader,
                                                                                                                                                                                                                          text        = first;
                                                                                                                                                                                                              
                                                                                                                                                                                                                      reader.mark();
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 5009..5022

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                  oror = function() {
                                                                                                                                                                                                                      // oror = andand ( " || " andand)*
                                                                                                                                                                                                                      var m = [ andand() ];
                                                                                                                                                                                                                      while (reader.readMatch(" || ") !== null) {
                                                                                                                                                                                                                          m.push(andand());
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 342..349
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 358..365

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                  expr = function() {
                                                                                                                                                                                                                      // expr = oror (" | " oror)*
                                                                                                                                                                                                                      var m = [ oror() ];
                                                                                                                                                                                                                      while (reader.readMatch(" | ") !== null) {
                                                                                                                                                                                                                          m.push(oror());
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 350..357
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 358..365

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                  andand = function() {
                                                                                                                                                                                                                      // andand = seq ( " && " seq)*
                                                                                                                                                                                                                      var m = [ seq() ];
                                                                                                                                                                                                                      while (reader.readMatch(" && ") !== null) {
                                                                                                                                                                                                                          m.push(seq());
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 342..349
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 350..357

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          parseSelector: function(input) {
                                                                                                                                                                                                              
                                                                                                                                                                                                                              this._tokenStream = new TokenStream(input, Tokens);
                                                                                                                                                                                                              
                                                                                                                                                                                                                              //skip any leading white space
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 3217..3233

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          parseRule: function(input) {
                                                                                                                                                                                                                              this._tokenStream = new TokenStream(input, Tokens);
                                                                                                                                                                                                              
                                                                                                                                                                                                                              //skip any leading white space
                                                                                                                                                                                                                              this._readWhitespace();
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 3242..3259

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                  }, function(prec) {
                                                                                                                                                                                                                      var p = Matcher.prec.SEQ;
                                                                                                                                                                                                                      var s = ms.map(function(m) {
                                                                                                                                                                                                                          return m.toString(p);
                                                                                                                                                                                                                      }).join(" ");
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 475..484

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                  }, function(prec) {
                                                                                                                                                                                                                      var p = Matcher.prec.ALT;
                                                                                                                                                                                                                      var s = ms.map(function(m) {
                                                                                                                                                                                                                          return m.toString(p);
                                                                                                                                                                                                                      }).join(" | ");
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 448..457

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                  if (!message.rollup) {
                                                                                                                                                                                                                                      output.push("<error line=\"" + message.line + "\" column=\"" + message.col + "\" severity=\"" + message.type + "\"" +
                                                                                                                                                                                                                                        " message=\"" + xmlEscape(message.message) + "\" source=\"" + generateSource(message.rule) +"\"/>");
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 10535..10538

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                  output.push("<issue line=\"" + message.line + "\" char=\"" + message.col + "\" severity=\"" + message.type + "\"" +
                                                                                                                                                                                                                                      " reason=\"" + escapeSpecialCharacters(message.message) + "\" evidence=\"" + escapeSpecialCharacters(message.evidence) + "\"/>");
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 10400..10403

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                      var escapeSpecialCharacters = function(str) {
                                                                                                                                                                                                                          if (!str || str.constructor !== String) {
                                                                                                                                                                                                                              return "";
                                                                                                                                                                                                                          }
                                                                                                                                                                                                                          return str.replace(/"/g, "'").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 10755..10760

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                      var escapeSpecialCharacters = function(str) {
                                                                                                                                                                                                                          if (!str || str.constructor !== String) {
                                                                                                                                                                                                                              return "";
                                                                                                                                                                                                                          }
                                                                                                                                                                                                                          return str.replace(/"/g, "'").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 10523..10528

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      "<nonnegative-number-or-percentage>": function(part) {
                                                                                                                                                                                                                          return (this["<number>"](part) || this["<percentage>"](part)) &&
                                                                                                                                                                                                                              (String(part) === "0" || part.type === "function" || (part.value) >= 0);
                                                                                                                                                                                                                      },
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 6167..6170

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      "<nonnegative-length-or-percentage>": function(part) {
                                                                                                                                                                                                                          return (this["<length>"](part) || this["<percentage>"](part)) &&
                                                                                                                                                                                                                              (String(part) === "0" || part.type === "function" || (part.value) >= 0);
                                                                                                                                                                                                                      },
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 6172..6175

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                              Matcher.andand = function() {
                                                                                                                                                                                                                  var args = Array.prototype.slice.call(arguments);
                                                                                                                                                                                                                  args.unshift(true);
                                                                                                                                                                                                                  return Matcher.many.apply(Matcher, args);
                                                                                                                                                                                                              };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 596..600

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 70.

                                                                                                                                                                                                              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

                                                                                                                                                                                                              Matcher.oror = function() {
                                                                                                                                                                                                                  var args = Array.prototype.slice.call(arguments);
                                                                                                                                                                                                                  args.unshift(false);
                                                                                                                                                                                                                  return Matcher.many.apply(Matcher, args);
                                                                                                                                                                                                              };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 585..589

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              if (!properties[needed]) {
                                                                                                                                                                                                                                  reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                  // make sure standard property is last
                                                                                                                                                                                                                                  if (properties[needed][0].pos < properties[actual][0].pos) {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 10229..10231

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 66.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                  if (properties[needed][0].pos < properties[actual][0].pos) {
                                                                                                                                                                                                                                      reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 10225..10232

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 66.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                      function() {
                                                                                                                                                                                                                                          return tokenStream.match(Tokens.HASH) ?
                                                                                                                                                                                                                                                  new SelectorSubPart(tokenStream.token().value, "id", tokenStream.token().startLine, tokenStream.token().startCol) :
                                                                                                                                                                                                                                                  null;
                                                                                                                                                                                                                                      },
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2434..2438

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 65.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                      function() {
                                                                                                                                                                                                                                          return tokenStream.match(Tokens.HASH) ?
                                                                                                                                                                                                                                                  new SelectorSubPart(tokenStream.token().value, "id", tokenStream.token().startLine, tokenStream.token().startCol) :
                                                                                                                                                                                                                                                  null;
                                                                                                                                                                                                                                      },
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2056..2060

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 65.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              case "#":
                                                                                                                                                                                                                                  if (isNameChar(reader.peek())) {
                                                                                                                                                                                                                                      token = this.hashToken(c, startLine, startCol);
                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                      token = this.charToken(c, startLine, startCol);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 4703..4709

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 65.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              case ".":
                                                                                                                                                                                                                                  if (isDigit(reader.peek())) {
                                                                                                                                                                                                                                      token = this.numberToken(c, startLine, startCol);
                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                      token = this.charToken(c, startLine, startCol);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 4688..4694

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 65.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                      parser.addListener("endstylesheet", function() {
                                                                                                                                                                                                                          reporter.stat("font-sizes", count);
                                                                                                                                                                                                                          if (count >= 10) {
                                                                                                                                                                                                                              reporter.rollupWarn("Too many font-size declarations (" + count + "), abstraction needed.", rule);
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 8976..8981
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 9275..9280

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 62.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                      parser.addListener("endstylesheet", function() {
                                                                                                                                                                                                                          reporter.stat("important", count);
                                                                                                                                                                                                                          if (count >= 10) {
                                                                                                                                                                                                                              reporter.rollupWarn("Too many !important declarations (" + count + "), try to use less than 10 to avoid specificity issues.", rule);
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 8976..8981
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 9046..9051

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 62.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                      parser.addListener("endstylesheet", function() {
                                                                                                                                                                                                                          reporter.stat("floats", count);
                                                                                                                                                                                                                          if (count >= 10) {
                                                                                                                                                                                                                              reporter.rollupWarn("Too many floats (" + count + "), you're probably using them for layout. Consider using a grid system instead.", rule);
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 9046..9051
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 9275..9280

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 62.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              if (message.rollup) {
                                                                                                                                                                                                                                  output.push("<issue severity=\"" + message.type + "\" reason=\"" + escapeSpecialCharacters(message.message) + "\" evidence=\"" + escapeSpecialCharacters(message.evidence) + "\"/>");
                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                  output.push("<issue line=\"" + message.line + "\" char=\"" + message.col + "\" severity=\"" + message.type + "\"" +
                                                                                                                                                                                                                                      " reason=\"" + escapeSpecialCharacters(message.message) + "\" evidence=\"" + escapeSpecialCharacters(message.evidence) + "\"/>");
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 10766..10775

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 59.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              if (message.rollup) {
                                                                                                                                                                                                                                  output.push("<issue severity=\"" + message.type + "\" reason=\"" + escapeSpecialCharacters(message.message) + "\" evidence=\"" + escapeSpecialCharacters(message.evidence) + "\"/>");
                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                  var rule = "";
                                                                                                                                                                                                                                  if (message.rule && message.rule.id) {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 10533..10538

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 59.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              case "/":
                                                                                                                                                                                                              
                                                                                                                                                                                                                                  if (reader.peek() === "*") {
                                                                                                                                                                                                                                      token = this.commentToken(c, startLine, startCol);
                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 4665..4671

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 58.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              case "*":
                                                                                                                                                                                                                                  if (reader.peek() === "=") {
                                                                                                                                                                                                                                      token = this.comparisonToken(c, startLine, startCol);
                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                      token = this.charToken(c, startLine, startCol);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 4643..4650

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 58.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                      var generateSource = function(rule) {
                                                                                                                                                                                                                          if (!rule || !("name" in rule)) {
                                                                                                                                                                                                                              return "";
                                                                                                                                                                                                                          }
                                                                                                                                                                                                                          return "net.csslint." + rule.name.replace(/\s/g, "");
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 10388..10393

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                          var generateSource = function(rule) {
                                                                                                                                                                                                                              if (!rule || !("name" in rule)) {
                                                                                                                                                                                                                                  return "";
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                              return "net.csslint." + rule.name.replace(/\s/g, "");
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 10647..10652

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                      } else if (expression.hasNext()) {
                                                                                                                                                                                                                          part = expression.next();
                                                                                                                                                                                                                          throw new ValidationError("Expected end of value but found '" + part + "'.", part.line, part.col);
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 5831..5834

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              if (expression.hasNext()) {
                                                                                                                                                                                                                                  part = expression.next();
                                                                                                                                                                                                                                  throw new ValidationError("Expected end of value but found '" + part + "'.", part.line, part.col);
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 5860..5863

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                      this.fire({
                                                                                                                                                                                                                                          type:       "error",
                                                                                                                                                                                                                                          error:      ex,
                                                                                                                                                                                                                                          message:    ex.message,
                                                                                                                                                                                                                                          line:       ex.line,
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 3083..3089

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                      this.fire({
                                                                                                                                                                                                                                          type:       "error",
                                                                                                                                                                                                                                          error:      ex,
                                                                                                                                                                                                                                          message:    ex.message,
                                                                                                                                                                                                                                          line:       ex.line,
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1877..1883

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                      case Tokens.NAMESPACE_SYM:
                                                                                                                                                                                                                                                          token = tokenStream.LT(1);
                                                                                                                                                                                                                                                          this._namespace(false);
                                                                                                                                                                                                                                                          throw new SyntaxError("@namespace not allowed here.", token.startLine, token.startCol);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 2 other locations - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 931..934
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 935..938

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 51.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                      case Tokens.IMPORT_SYM:
                                                                                                                                                                                                                                                          token = tokenStream.LT(1);
                                                                                                                                                                                                                                                          this._import(false);
                                                                                                                                                                                                                                                          throw new SyntaxError("@import not allowed here.", token.startLine, token.startCol);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 2 other locations - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 931..934
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 939..942

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 51.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                      case Tokens.CHARSET_SYM:
                                                                                                                                                                                                                                                          token = tokenStream.LT(1);
                                                                                                                                                                                                                                                          this._charset(false);
                                                                                                                                                                                                                                                          throw new SyntaxError("@charset not allowed here.", token.startLine, token.startCol);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 2 other locations - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 935..938
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 939..942

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 51.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                          for (var i=0, len=values.length; i < len; i++) {
                                                                                                                                                                                                                              if (values[i] === value) {
                                                                                                                                                                                                                                  return i;
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                              wp-includes/js/plupload/moxie.js on lines 308..312

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 50.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              if (unary !== null) {
                                                                                                                                                                                                                                  line = tokenStream.token().startLine;
                                                                                                                                                                                                                                  col = tokenStream.token().startCol;
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2631..2634

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                  rollupWarn: function(message, rule) {
                                                                                                                                                                                                                      "use strict";
                                                                                                                                                                                                                      this.messages.push({
                                                                                                                                                                                                                          type    : "warning",
                                                                                                                                                                                                                          rollup  : true,
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 8046..8054

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                  if (unary === null) {
                                                                                                                                                                                                                                      line = tokenStream.token().startLine;
                                                                                                                                                                                                                                      col = tokenStream.token().startCol;
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2622..2625

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                  rollupError: function(message, rule) {
                                                                                                                                                                                                                      "use strict";
                                                                                                                                                                                                                      this.messages.push({
                                                                                                                                                                                                                          type    : "error",
                                                                                                                                                                                                                          rollup  : true,
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 8062..8070

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                  this.fire({
                                                                                                                                                                                                                                      type:       "endrule",
                                                                                                                                                                                                                                      selectors:  selectors,
                                                                                                                                                                                                                                      line:       selectors[0].line,
                                                                                                                                                                                                                                      col:        selectors[0].col
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 3 other locations - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1906..1911
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2934..2939
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2943..2948

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              this.fire({
                                                                                                                                                                                                                                  type:   "startkeyframerule",
                                                                                                                                                                                                                                  keys:   keyList,
                                                                                                                                                                                                                                  line:   keyList[0].line,
                                                                                                                                                                                                                                  col:    keyList[0].col
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 3 other locations - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1906..1911
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1915..1920
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2943..2948

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                  this.fire({
                                                                                                                                                                                                                                      type:       "startrule",
                                                                                                                                                                                                                                      selectors:  selectors,
                                                                                                                                                                                                                                      line:       selectors[0].line,
                                                                                                                                                                                                                                      col:        selectors[0].col
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 3 other locations - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1915..1920
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2934..2939
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2943..2948

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              this.fire({
                                                                                                                                                                                                                                  type:   "endkeyframerule",
                                                                                                                                                                                                                                  keys:   keyList,
                                                                                                                                                                                                                                  line:   keyList[0].line,
                                                                                                                                                                                                                                  col:    keyList[0].col
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 3 other locations - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1906..1911
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1915..1920
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2934..2939

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  hashToken: function(first, startLine, startCol) {
                                                                                                                                                                                                                      var name    = this.readName(first);
                                                                                                                                                                                                              
                                                                                                                                                                                                                      return this.createToken(Tokens.HASH, name, startLine, startCol);
                                                                                                                                                                                                                  },
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 4959..4963

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  commentToken: function(first, startLine, startCol) {
                                                                                                                                                                                                                      var comment = this.readComment(first);
                                                                                                                                                                                                              
                                                                                                                                                                                                                      return this.createToken(Tokens.COMMENT, comment, startLine, startCol);
                                                                                                                                                                                                                  },
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 4993..4997

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      report = {
                                                                                                                                                                                                                          messages    : reporter.messages,
                                                                                                                                                                                                                          stats       : reporter.stats,
                                                                                                                                                                                                                          ruleset     : reporter.ruleset,
                                                                                                                                                                                                                          allow       : reporter.allow,
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4269..4275

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              while (tokenStream.match(Tokens.COMMA)) {
                                                                                                                                                                                                                                  this._readWhitespace();
                                                                                                                                                                                                                                  functions.push(this._document_function());
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1305..1308

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              while (tokenStream.match(Tokens.COMMA)) {
                                                                                                                                                                                                                                  this._readWhitespace();
                                                                                                                                                                                                                                  mediaList.push(this._media_query());
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1676..1679

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              while (tokenStream.peek() === Tokens.NAMESPACE_SYM) {
                                                                                                                                                                                                                                  this._namespace();
                                                                                                                                                                                                                                  this._skipCruft();
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 846..849

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              while (tokenStream.peek() === Tokens.IMPORT_SYM) {
                                                                                                                                                                                                                                  this._import();
                                                                                                                                                                                                                                  this._skipCruft();
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 852..855

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              this.fire({
                                                                                                                                                                                                                                  type:      "startdocument",
                                                                                                                                                                                                                                  functions: functions,
                                                                                                                                                                                                                                  prefix:    prefix,
                                                                                                                                                                                                                                  line:      token.startLine,
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 4 other locations - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1036..1042
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1722..1728
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2878..2884
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2896..2902

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              this.fire({
                                                                                                                                                                                                                                  type:   "endkeyframes",
                                                                                                                                                                                                                                  name:   name,
                                                                                                                                                                                                                                  prefix: prefix,
                                                                                                                                                                                                                                  line:   token.startLine,
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 4 other locations - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1036..1042
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1684..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1722..1728
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2878..2884

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              this.fire({
                                                                                                                                                                                                                                  type:   "startkeyframes",
                                                                                                                                                                                                                                  name:   name,
                                                                                                                                                                                                                                  prefix: prefix,
                                                                                                                                                                                                                                  line:   token.startLine,
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 4 other locations - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1036..1042
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1684..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1722..1728
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2896..2902

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              this.fire({
                                                                                                                                                                                                                                  type:      "enddocument",
                                                                                                                                                                                                                                  functions: functions,
                                                                                                                                                                                                                                  prefix:    prefix,
                                                                                                                                                                                                                                  line:      token.startLine,
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 4 other locations - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1036..1042
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1684..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2878..2884
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2896..2902

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                  this.fire({
                                                                                                                                                                                                                                      type:   "import",
                                                                                                                                                                                                                                      uri:    uri,
                                                                                                                                                                                                                                      media:  mediaList,
                                                                                                                                                                                                                                      line:   importToken.startLine,
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 4 other locations - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1684..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 1722..1728
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2878..2884
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 2896..2902

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                          output.unshift("<testsuite time=\"0\" tests=\"" + messages.length + "\" skipped=\"0\" errors=\"" + tests.error + "\" failures=\"" + tests.failure + "\" package=\"net.csslint\" name=\"" + filename + "\">");
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/csslint.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/tinymce/plugins/media/plugin.js on lines 538..538

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

                                                                                                                                                                                                              There are no issues that match your filters.

                                                                                                                                                                                                              Category
                                                                                                                                                                                                              Status