Hirse/brackets-outline-list

View on GitHub
thirdparty/postcss-safe-parser.js

Summary

Maintainability
F
2 mos
Test Coverage

File postcss-safe-parser.js has 5443 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**!
 * PostCSS Safe Parser version 6.0.0
 * (browserified with Browserify version 17.0.0)
 *
 * The MIT License (MIT)
Severity: Major
Found in thirdparty/postcss-safe-parser.js - About 2 wks to fix

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

    },{}],3:[function(require,module,exports){
    (function (Buffer){(function (){
    /*!
     * The buffer module from node.js, for the browser.
     *
    Severity: Major
    Found in thirdparty/postcss-safe-parser.js - About 6 days to fix

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

      },{"./container":11,"./input":16,"./parser":23,"_process":36}],23:[function(require,module,exports){
      'use strict'
      
      let Declaration = require('./declaration')
      let tokenizer = require('./tokenize')
      Severity: Major
      Found in thirdparty/postcss-safe-parser.js - About 2 days to fix

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

        },{"./css-syntax-error":12,"./previous-map":25,"./terminal-highlight":2,"nanoid/non-secure":5,"path":2,"source-map-js":2,"url":2}],17:[function(require,module,exports){
        (function (process){(function (){
        'use strict'
        
        let { isClean, my } = require('./symbols')
        Severity: Major
        Found in thirdparty/postcss-safe-parser.js - About 2 days to fix

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

          },{"./node":21}],11:[function(require,module,exports){
          'use strict'
          
          let { isClean, my } = require('./symbols')
          let Declaration = require('./declaration')
          Severity: Major
          Found in thirdparty/postcss-safe-parser.js - About 1 day to fix

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

            },{"./map-generator":19,"./parse":22,"./result":27,"./stringify":31,"./warn-once":34,"_process":36}],21:[function(require,module,exports){
            'use strict'
            
            let { isClean, my } = require('./symbols')
            let CssSyntaxError = require('./css-syntax-error')
            Severity: Major
            Found in thirdparty/postcss-safe-parser.js - About 1 day to fix

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

              },{"./container":11,"./list":18}],30:[function(require,module,exports){
              'use strict'
              
              const DEFAULT_RAW = {
                after: '\n',
              Severity: Major
              Found in thirdparty/postcss-safe-parser.js - About 1 day to fix

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

                },{}],19:[function(require,module,exports){
                (function (Buffer){(function (){
                'use strict'
                
                let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
                Severity: Major
                Found in thirdparty/postcss-safe-parser.js - About 1 day to fix

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

                  },{}],33:[function(require,module,exports){
                  'use strict'
                  
                  const SINGLE_QUOTE = "'".charCodeAt(0)
                  const DOUBLE_QUOTE = '"'.charCodeAt(0)
                  Severity: Major
                  Found in thirdparty/postcss-safe-parser.js - About 1 day to fix

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

                    },{"./at-rule":9,"./comment":10,"./declaration":13,"./input":16,"./previous-map":25,"./root":28,"./rule":29}],16:[function(require,module,exports){
                    'use strict'
                    
                    let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
                    let { fileURLToPath, pathToFileURL } = require('url')
                    Severity: Major
                    Found in thirdparty/postcss-safe-parser.js - About 1 day to fix

                      Function tokenizer has 205 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      module.exports = function tokenizer(input, options = {}) {
                        let css = input.css.valueOf()
                        let ignore = options.ignoreErrors
                      
                        let code, next, quote, content, escape
                      Severity: Major
                      Found in thirdparty/postcss-safe-parser.js - About 1 day to fix

                        Function nextToken has 177 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          function nextToken(opts) {
                            if (returned.length) return returned.pop()
                            if (pos >= length) return
                        
                            let ignoreUnclosed = opts ? opts.ignoreUnclosed : false
                        Severity: Major
                        Found in thirdparty/postcss-safe-parser.js - About 7 hrs to fix

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

                          },{}],36:[function(require,module,exports){
                          // shim for using process in browser
                          var process = module.exports = {};
                          
                          // cached from whatever global is present so that test runners that stub it
                          Severity: Major
                          Found in thirdparty/postcss-safe-parser.js - About 5 hrs to fix

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

                            },{"./at-rule":9,"./comment":10,"./container":11,"./css-syntax-error":12,"./declaration":13,"./document":14,"./fromJSON":15,"./input":16,"./lazy-result":17,"./list":18,"./node":21,"./parse":22,"./processor":26,"./result.js":27,"./root":28,"./rule":29,"./stringify":31,"./warning":35,"_process":36}],25:[function(require,module,exports){
                            (function (Buffer){(function (){
                            'use strict'
                            
                            let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
                            Severity: Major
                            Found in thirdparty/postcss-safe-parser.js - About 4 hrs to fix

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

                              (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.postcssSafeParser = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
                              'use strict'
                              
                              exports.byteLength = byteLength
                              exports.toByteArray = toByteArray
                              Severity: Major
                              Found in thirdparty/postcss-safe-parser.js - About 4 hrs to fix

                                Function 20 has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                },{"./input":16,"buffer":3,"path":2,"source-map-js":2,"url":2}],20:[function(require,module,exports){
                                (function (process){(function (){
                                'use strict'
                                
                                let MapGenerator = require('./map-generator')
                                Severity: Major
                                Found in thirdparty/postcss-safe-parser.js - About 4 hrs to fix

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

                                  },{"./at-rule":9,"./comment":10,"./declaration":13,"./root":28,"./rule":29,"./tokenize":33}],24:[function(require,module,exports){
                                  (function (process){(function (){
                                  'use strict'
                                  
                                  let CssSyntaxError = require('./css-syntax-error')
                                  Severity: Major
                                  Found in thirdparty/postcss-safe-parser.js - About 3 hrs to fix

                                    Function decl has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      decl(tokens, customProperty) {
                                        let node = new Declaration()
                                        this.init(node, tokens[0][2])
                                    
                                        let last = tokens[tokens.length - 1]
                                    Severity: Major
                                    Found in thirdparty/postcss-safe-parser.js - About 3 hrs to fix

                                      Function 12 has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      },{"./comment":10,"./declaration":13,"./node":21,"./symbols":32}],12:[function(require,module,exports){
                                      'use strict'
                                      
                                      let pico = require('picocolors')
                                      
                                      
                                      Severity: Major
                                      Found in thirdparty/postcss-safe-parser.js - About 3 hrs to fix

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

                                        },{}],7:[function(require,module,exports){
                                        let tokenizer = require('postcss/lib/tokenize')
                                        let Comment = require('postcss/lib/comment')
                                        let Parser = require('postcss/lib/parser')
                                        
                                        
                                        Severity: Major
                                        Found in thirdparty/postcss-safe-parser.js - About 3 hrs to fix

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

                                            atrule(token) {
                                              let node = new AtRule()
                                              node.name = token[1].slice(1)
                                              if (node.name === '') {
                                                this.unnamedAtrule(node, token)
                                          Severity: Major
                                          Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

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

                                            },{"base64-js":1,"buffer":3,"ieee754":4}],4:[function(require,module,exports){
                                            /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
                                            exports.read = function (buffer, offset, isLE, mLen, nBytes) {
                                              var e, m
                                              var eLen = (nBytes * 8) - mLen - 1
                                            Severity: Major
                                            Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                                              Function utf8Slice has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                              function utf8Slice (buf, start, end) {
                                                end = Math.min(buf.length, end)
                                                var res = []
                                              
                                                var i = start
                                              Severity: Major
                                              Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

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

                                                },{"buffer":3,"fs":2,"path":2,"source-map-js":2}],26:[function(require,module,exports){
                                                (function (process){(function (){
                                                'use strict'
                                                
                                                let NoWorkResult = require('./no-work-result')
                                                Severity: Major
                                                Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

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

                                                    generateString() {
                                                      this.css = ''
                                                      this.map = new SourceMapGenerator({ file: this.outputFile() })
                                                  
                                                      let line = 1
                                                  Severity: Major
                                                  Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                                                    Function utf8ToBytes has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                    function utf8ToBytes (string, units) {
                                                      units = units || Infinity
                                                      var codePoint
                                                      var length = string.length
                                                      var leadSurrogate = null
                                                    Severity: Major
                                                    Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

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

                                                        error(message, line, column, opts = {}) {
                                                          let result, endLine, endColumn
                                                      
                                                          if (line && typeof line === 'object') {
                                                            let start = line
                                                      Severity: Major
                                                      Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

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

                                                          other(start) {
                                                            let end = false
                                                            let type = null
                                                            let colon = false
                                                            let bracket = null
                                                        Severity: Major
                                                        Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                                                          Function write has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                          Buffer.prototype.write = function write (string, offset, length, encoding) {
                                                            // Buffer#write(string)
                                                            if (offset === undefined) {
                                                              encoding = 'utf8'
                                                              length = this.length
                                                          Severity: Major
                                                          Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

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

                                                            Buffer.prototype.fill = function fill (val, start, end, encoding) {
                                                              // Handle string cases:
                                                              if (typeof val === 'string') {
                                                                if (typeof start === 'string') {
                                                                  encoding = start
                                                            Severity: Major
                                                            Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

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

                                                              Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
                                                                if (isInstance(target, Uint8Array)) {
                                                                  target = Buffer.from(target, target.offset, target.byteLength)
                                                                }
                                                                if (!Buffer.isBuffer(target)) {
                                                              Severity: Major
                                                              Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                                                                Function visitTick has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                  visitTick(stack) {
                                                                    let visit = stack[stack.length - 1]
                                                                    let { node, visitors } = visit
                                                                
                                                                    if (node.type !== 'root' && node.type !== 'document' && !node.parent) {
                                                                Severity: Minor
                                                                Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                                                                  Function runAsync has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                    async runAsync() {
                                                                      this.plugin = 0
                                                                      for (let i = 0; i < this.plugins.length; i++) {
                                                                        let plugin = this.plugins[i]
                                                                        let promise = this.runOnRoot(plugin)
                                                                  Severity: Minor
                                                                  Found in thirdparty/postcss-safe-parser.js - About 2 hrs to fix

                                                                    Function arrayIndexOf has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                    function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
                                                                      var indexSize = 1
                                                                      var arrLength = arr.length
                                                                      var valLength = val.length
                                                                    
                                                                    
                                                                    Severity: Minor
                                                                    Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

                                                                      Function 15 has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                      },{"./container":11}],15:[function(require,module,exports){
                                                                      'use strict'
                                                                      
                                                                      let Declaration = require('./declaration')
                                                                      let PreviousMap = require('./previous-map')
                                                                      Severity: Minor
                                                                      Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                        },{"./container":11,"./document":14,"./map-generator":19,"./parse":22,"./result":27,"./root":28,"./stringify":31,"./symbols":32,"./warn-once":34,"_process":36}],18:[function(require,module,exports){
                                                                        'use strict'
                                                                        
                                                                        let list = {
                                                                          comma(string) {
                                                                        Severity: Minor
                                                                        Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

                                                                          Function rangeBy has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                            rangeBy(opts) {
                                                                              let start = {
                                                                                column: this.source.start.column,
                                                                                line: this.source.start.line
                                                                              }
                                                                          Severity: Minor
                                                                          Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                              getProxyProcessor() {
                                                                                return {
                                                                                  get(node, prop) {
                                                                                    if (prop === 'proxyOf') {
                                                                                      return node
                                                                            Severity: Minor
                                                                            Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                              },{"./warning":35}],28:[function(require,module,exports){
                                                                              'use strict'
                                                                              
                                                                              let Container = require('./container')
                                                                              
                                                                              
                                                                              Severity: Minor
                                                                              Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                  normalize(nodes, sample) {
                                                                                    if (typeof nodes === 'string') {
                                                                                      nodes = cleanSource(parse(nodes).nodes)
                                                                                    } else if (Array.isArray(nodes)) {
                                                                                      nodes = nodes.slice(0)
                                                                                Severity: Minor
                                                                                Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                  function slowToString (encoding, start, end) {
                                                                                    var loweredCase = false
                                                                                  
                                                                                    // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
                                                                                    // property of a typed array.
                                                                                  Severity: Minor
                                                                                  Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                    exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
                                                                                      var e, m, c
                                                                                      var eLen = (nBytes * 8) - mLen - 1
                                                                                      var eMax = (1 << eLen) - 1
                                                                                      var eBias = eMax >> 1
                                                                                    Severity: Minor
                                                                                    Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                      function byteLength (string, encoding) {
                                                                                        if (Buffer.isBuffer(string)) {
                                                                                          return string.length
                                                                                        }
                                                                                        if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
                                                                                      Severity: Minor
                                                                                      Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                        function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
                                                                                          // Empty buffer means no match
                                                                                          if (buffer.length === 0) return -1
                                                                                        
                                                                                          // Normalize byteOffset
                                                                                        Severity: Minor
                                                                                        Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                            constructor(processor, css, opts) {
                                                                                              this.stringified = false
                                                                                              this.processed = false
                                                                                          
                                                                                              let root
                                                                                          Severity: Minor
                                                                                          Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                              toJSON(_, inputs) {
                                                                                                let fixed = {}
                                                                                                let emitInputs = inputs == null
                                                                                                inputs = inputs || new Map()
                                                                                                let inputsNextIndex = 0
                                                                                            Severity: Minor
                                                                                            Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                              },{"./css-syntax-error":12,"./stringifier":30,"./stringify":31,"./symbols":32}],22:[function(require,module,exports){
                                                                                              (function (process){(function (){
                                                                                              'use strict'
                                                                                              
                                                                                              let Container = require('./container')
                                                                                              Severity: Minor
                                                                                              Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                function fromJSON(json, inputs) {
                                                                                                  if (Array.isArray(json)) return json.map(n => fromJSON(n))
                                                                                                
                                                                                                  let { inputs: ownInputs, ...defaults } = json
                                                                                                  if (ownInputs) {
                                                                                                Severity: Minor
                                                                                                Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                  function from (value, encodingOrOffset, length) {
                                                                                                    if (typeof value === 'string') {
                                                                                                      return fromString(value, encodingOrOffset)
                                                                                                    }
                                                                                                  
                                                                                                  
                                                                                                  Severity: Minor
                                                                                                  Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                      raw(node, own, detect) {
                                                                                                        let value
                                                                                                        if (!detect) detect = own
                                                                                                    
                                                                                                        // Already had
                                                                                                    Severity: Minor
                                                                                                    Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                        constructor(css, opts = {}) {
                                                                                                          if (
                                                                                                            css === null ||
                                                                                                            typeof css === 'undefined' ||
                                                                                                            (typeof css === 'object' && !css.toString)
                                                                                                      Severity: Minor
                                                                                                      Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                          split(string, separators, last) {
                                                                                                            let array = []
                                                                                                            let current = ''
                                                                                                            let split = false
                                                                                                        
                                                                                                        
                                                                                                        Severity: Minor
                                                                                                        Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                            fromOffset(offset) {
                                                                                                              let lastLine, lineToIndex
                                                                                                              if (!this[fromOffsetCache]) {
                                                                                                                let lines = this.css.split('\n')
                                                                                                                lineToIndex = new Array(lines.length)
                                                                                                          Severity: Minor
                                                                                                          Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                            function toByteArray (b64) {
                                                                                                              var tmp
                                                                                                              var lens = getLens(b64)
                                                                                                              var validLen = lens[0]
                                                                                                              var placeHoldersLen = lens[1]
                                                                                                            Severity: Minor
                                                                                                            Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                prepareVisitors() {
                                                                                                                  this.listeners = {}
                                                                                                                  let add = (plugin, type, cb) => {
                                                                                                                    if (!this.listeners[type]) this.listeners[type] = []
                                                                                                                    this.listeners[type].push([plugin, cb])
                                                                                                              Severity: Minor
                                                                                                              Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                  origin(line, column, endLine, endColumn) {
                                                                                                                    if (!this.map) return false
                                                                                                                    let consumer = this.map.consumer()
                                                                                                                
                                                                                                                    let from = consumer.originalPositionFor({ column, line })
                                                                                                                Severity: Minor
                                                                                                                Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                        get(node, prop) {
                                                                                                                          if (prop === 'proxyOf') {
                                                                                                                            return node
                                                                                                                          } else if (!node[prop]) {
                                                                                                                            return node[prop]
                                                                                                                  Severity: Minor
                                                                                                                  Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                    Open

                                                                                                                            if (
                                                                                                                              prev === 'url' &&
                                                                                                                              n !== SINGLE_QUOTE &&
                                                                                                                              n !== DOUBLE_QUOTE &&
                                                                                                                              n !== SPACE &&
                                                                                                                    Severity: Critical
                                                                                                                    Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                        loadMap(file, prev) {
                                                                                                                          if (prev === false) return false
                                                                                                                      
                                                                                                                          if (prev) {
                                                                                                                            if (typeof prev === 'string') {
                                                                                                                      Severity: Minor
                                                                                                                      Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                        postcss.plugin = function plugin(name, initializer) {
                                                                                                                          let warningPrinted = false
                                                                                                                          function creator(...args) {
                                                                                                                            // eslint-disable-next-line no-console
                                                                                                                            if (console && console.warn && !warningPrinted) {
                                                                                                                        Severity: Minor
                                                                                                                        Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                          },{"./document":14,"./lazy-result":17,"./no-work-result":20,"./root":28,"_process":36}],27:[function(require,module,exports){
                                                                                                                          'use strict'
                                                                                                                          
                                                                                                                          let Warning = require('./warning')
                                                                                                                          
                                                                                                                          
                                                                                                                          Severity: Minor
                                                                                                                          Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                              handleError(error, node) {
                                                                                                                                let plugin = this.result.lastPlugin
                                                                                                                                try {
                                                                                                                                  if (node) node.addToError(error)
                                                                                                                                  this.error = error
                                                                                                                            Severity: Minor
                                                                                                                            Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                              Buffer.prototype.copy = function copy (target, targetStart, start, end) {
                                                                                                                                if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')
                                                                                                                                if (!start) start = 0
                                                                                                                                if (!end && end !== 0) end = this.length
                                                                                                                                if (targetStart >= target.length) targetStart = target.length
                                                                                                                              Severity: Minor
                                                                                                                              Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                  showSourceCode(color) {
                                                                                                                                    if (!this.source) return ''
                                                                                                                                
                                                                                                                                    let css = this.source
                                                                                                                                    if (color == null) color = pico.isColorSupported
                                                                                                                                Severity: Minor
                                                                                                                                Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                    raw(node, prop, tokens, customProperty) {
                                                                                                                                      let token, type
                                                                                                                                      let length = tokens.length
                                                                                                                                      let value = ''
                                                                                                                                      let clean = true
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                      sync() {
                                                                                                                                        if (this.error) throw this.error
                                                                                                                                        if (this.processed) return this.result
                                                                                                                                        this.processed = true
                                                                                                                                    
                                                                                                                                    
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                      },{}],35:[function(require,module,exports){
                                                                                                                                      'use strict'
                                                                                                                                      
                                                                                                                                      class Warning {
                                                                                                                                        constructor(text, opts = {}) {
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                          parse() {
                                                                                                                                            let token
                                                                                                                                            while (!this.tokenizer.endOfFile()) {
                                                                                                                                              token = this.tokenizer.nextToken()
                                                                                                                                        
                                                                                                                                        
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                          function parse(css, opts) {
                                                                                                                                            let input = new Input(css, opts)
                                                                                                                                            let parser = new Parser(input)
                                                                                                                                            try {
                                                                                                                                              parser.parse()
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                            Buffer.concat = function concat (list, length) {
                                                                                                                                              if (!Array.isArray(list)) {
                                                                                                                                                throw new TypeError('"list" argument must be an Array of Buffers')
                                                                                                                                              }
                                                                                                                                            
                                                                                                                                            
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                                constructor(message, line, column, source, file, plugin) {
                                                                                                                                                  super(message)
                                                                                                                                                  this.name = 'CssSyntaxError'
                                                                                                                                                  this.reason = message
                                                                                                                                              
                                                                                                                                              
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                                exports.read = function (buffer, offset, isLE, mLen, nBytes) {
                                                                                                                                                  var e, m
                                                                                                                                                  var eLen = (nBytes * 8) - mLen - 1
                                                                                                                                                  var eMax = (1 << eLen) - 1
                                                                                                                                                  var eBias = eMax >> 1
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                                    getProxyProcessor() {
                                                                                                                                                      return {
                                                                                                                                                        get(node, prop) {
                                                                                                                                                          if (prop === 'proxyOf') {
                                                                                                                                                            return node
                                                                                                                                                  Severity: Minor
                                                                                                                                                  Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                                      normalize(plugins) {
                                                                                                                                                        let normalized = []
                                                                                                                                                        for (let i of plugins) {
                                                                                                                                                          if (i.postcss === true) {
                                                                                                                                                            i = i()
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                                        constructor(processor, css, opts) {
                                                                                                                                                          css = css.toString()
                                                                                                                                                          this.stringified = false
                                                                                                                                                      
                                                                                                                                                          this._processor = processor
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

                                                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                                                        Open

                                                                                                                                                                if (
                                                                                                                                                                  escape &&
                                                                                                                                                                  code !== SLASH &&
                                                                                                                                                                  code !== SPACE &&
                                                                                                                                                                  code !== NEWLINE &&
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in thirdparty/postcss-safe-parser.js - About 1 hr to fix

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

                                                                                                                                                          function checkIEEE754 (buf, value, offset, ext, max, min) {
                                                                                                                                                          Severity: Minor
                                                                                                                                                          Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                        if (tempCodePoint > 0x7F) {
                                                                                                                                                                          codePoint = tempCodePoint
                                                                                                                                                                        }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                          while (prev && prev[0] === 'space') {
                                                                                                                                                                            prev = params[--shift]
                                                                                                                                                                          }
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                            if (typeof plugin[event] === 'object') {
                                                                                                                                                                              for (let filter in plugin[event]) {
                                                                                                                                                                                if (filter === '*') {
                                                                                                                                                                                  add(plugin, event, plugin[event][filter])
                                                                                                                                                                                } else {
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                if (ignore || ignoreUnclosed) {
                                                                                                                                                                                  next = pos
                                                                                                                                                                                  break
                                                                                                                                                                                } else {
                                                                                                                                                                                  unclosed('bracket')
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                              if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

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

                                                                                                                                                                      function checkInt (buf, value, offset, ext, max, min) {
                                                                                                                                                                      Severity: Minor
                                                                                                                                                                      Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                              } else if (type === brackets[brackets.length - 1]) {
                                                                                                                                                                                brackets.pop()
                                                                                                                                                                                if (brackets.length === 0) bracket = null
                                                                                                                                                                              }
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                          Open

                                                                                                                                                                                  } else if (i + 1 === length) {
                                                                                                                                                                                    // unpaired lead
                                                                                                                                                                                    if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
                                                                                                                                                                                    continue
                                                                                                                                                                                  }
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                            Open

                                                                                                                                                                                      if (str.trim().indexOf('!') === 0 && type !== 'space') {
                                                                                                                                                                                        break
                                                                                                                                                                                      }
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                              Open

                                                                                                                                                                                          if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
                                                                                                                                                                                            codePoint = tempCodePoint
                                                                                                                                                                                          }
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                Open

                                                                                                                                                                                        if (separators.includes(letter)) split = true
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                  Open

                                                                                                                                                                                              if (prev) {
                                                                                                                                                                                                node.source.end = this.getPosition(prev[3] || prev[2])
                                                                                                                                                                                              }
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                    Open

                                                                                                                                                                                                if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
                                                                                                                                                                                                  codePoint = tempCodePoint
                                                                                                                                                                                                }
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                      Open

                                                                                                                                                                                            if ((units -= 3) < 0) break
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                        Open

                                                                                                                                                                                            } else if (codePoint < 0x110000) {
                                                                                                                                                                                              if ((units -= 4) < 0) break
                                                                                                                                                                                              bytes.push(
                                                                                                                                                                                                codePoint >> 0x12 | 0xF0,
                                                                                                                                                                                                codePoint >> 0xC & 0x3F | 0x80,
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

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

                                                                                                                                                                                          exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                          Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                            Open

                                                                                                                                                                                                    if (type === ';') {
                                                                                                                                                                                                      if (colon) {
                                                                                                                                                                                                        this.decl(tokens, customProperty)
                                                                                                                                                                                                        return
                                                                                                                                                                                                      } else {
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in thirdparty/postcss-safe-parser.js - About 45 mins to fix

                                                                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                                                                              Open

                                                                                                                                                                                                      if (
                                                                                                                                                                                                        prop === 'prop' ||
                                                                                                                                                                                                        prop === 'value' ||
                                                                                                                                                                                                        prop === 'name' ||
                                                                                                                                                                                                        prop === 'params' ||
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in thirdparty/postcss-safe-parser.js - About 40 mins to fix

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

                                                                                                                                                                                                Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

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

                                                                                                                                                                                                  function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                  Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

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

                                                                                                                                                                                                    function writeDouble (buf, value, offset, littleEndian, noAssert) {
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

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

                                                                                                                                                                                                      function writeFloat (buf, value, offset, littleEndian, noAssert) {
                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                      Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

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

                                                                                                                                                                                                        exports.read = function (buffer, offset, isLE, mLen, nBytes) {
                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                        Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

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

                                                                                                                                                                                                          function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in thirdparty/postcss-safe-parser.js - About 35 mins to fix

                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                    return prev.toString()
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                    return root.rawCache[detect]
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                          return () => node.root().toProxy()
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                              return cachedSetTimeout.call(this, fun, 0);
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                        return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                    Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                return node[prop].toProxy()
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                            return new Comment(defaults)
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                return this.loadFile(map)
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                  return this.beforeAfter(node, detect)
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                if (y < x) return 1
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                            return cachedClearTimeout.call(this, marker);
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                    return 0
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                            return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                    Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                        if (b) return b
                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                      Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                            return Buffer.from(
                                                                                                                                                                                                                                              value[Symbol.toPrimitive]('string'), encodingOrOffset, length
                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                              return new AtRule(defaults)
                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                          Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                      return node.nodes.map(i => i.toProxy())
                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                            Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                        return node[prop]
                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                              Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                    return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                          return JSON.stringify(prev)
                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                  Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                          return this.decodeInline(this.annotation)
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                        if (x < y) return -1
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                return
                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                        Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                              return fromArrayLike(obj.data)
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                    return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                            Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                  return value
                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                              Found in thirdparty/postcss-safe-parser.js - About 30 mins to fix

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

                                                                                                                                                                                                                                                                },{}],36:[function(require,module,exports){
                                                                                                                                                                                                                                                                // shim for using process in browser
                                                                                                                                                                                                                                                                var process = module.exports = {};
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                // cached from whatever global is present so that test runners that stub it
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 2 other locations - About 1 wk to fix
                                                                                                                                                                                                                                                                thirdparty/php-parser.js on lines 8557..8743
                                                                                                                                                                                                                                                                thirdparty/promise.js on lines 28..214

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.postcssSafeParser = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
                                                                                                                                                                                                                                                                'use strict'
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                exports.byteLength = byteLength
                                                                                                                                                                                                                                                                exports.toByteArray = toByteArray
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 4 other locations - About 1 day to fix
                                                                                                                                                                                                                                                                thirdparty/espree.js on lines 31..8041
                                                                                                                                                                                                                                                                thirdparty/htmlparser2.js on lines 26..4483
                                                                                                                                                                                                                                                                thirdparty/php-parser.js on lines 35..8743
                                                                                                                                                                                                                                                                thirdparty/promise.js on lines 28..665

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  walkRules(selector, callback) {
                                                                                                                                                                                                                                                                    if (!callback) {
                                                                                                                                                                                                                                                                      callback = selector
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                      return this.walk((child, i) => {
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2553..2574
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2584..2605

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  walkDecls(prop, callback) {
                                                                                                                                                                                                                                                                    if (!callback) {
                                                                                                                                                                                                                                                                      callback = prop
                                                                                                                                                                                                                                                                      return this.walk((child, i) => {
                                                                                                                                                                                                                                                                        if (child.type === 'decl') {
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2553..2574
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2607..2629

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  walkAtRules(name, callback) {
                                                                                                                                                                                                                                                                    if (!callback) {
                                                                                                                                                                                                                                                                      callback = name
                                                                                                                                                                                                                                                                      return this.walk((child, i) => {
                                                                                                                                                                                                                                                                        if (child.type === 'atrule') {
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2584..2605
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2607..2629

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  rawBeforeDecl(root, node) {
                                                                                                                                                                                                                                                                    let value
                                                                                                                                                                                                                                                                    root.walkDecls(i => {
                                                                                                                                                                                                                                                                      if (typeof i.raws.before !== 'undefined') {
                                                                                                                                                                                                                                                                        value = i.raws.before
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5930..5947

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  rawBeforeComment(root, node) {
                                                                                                                                                                                                                                                                    let value
                                                                                                                                                                                                                                                                    root.walkComments(i => {
                                                                                                                                                                                                                                                                      if (typeof i.raws.before !== 'undefined') {
                                                                                                                                                                                                                                                                        value = i.raws.before
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5949..5966

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

                                                                                                                                                                                                                                                                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 (/^\s*$/.test(text)) {
                                                                                                                                                                                                                                                                      node.text = ''
                                                                                                                                                                                                                                                                      node.raws.left = text
                                                                                                                                                                                                                                                                      node.raws.right = ''
                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2102..2111

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

                                                                                                                                                                                                                                                                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 (/^\s*$/.test(text)) {
                                                                                                                                                                                                                                                                      node.text = ''
                                                                                                                                                                                                                                                                      node.raws.left = text
                                                                                                                                                                                                                                                                      node.raws.right = ''
                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4844..4853

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) checkOffset(offset, 4, this.length)
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                  return ((this[offset]) |
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1417..1425

                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                This issue has a mass of 109.

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

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

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

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

                                                                                                                                                                                                                                                                Refactorings

                                                                                                                                                                                                                                                                Further Reading

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

                                                                                                                                                                                                                                                                Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) checkOffset(offset, 4, this.length)
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                  return (this[offset]) |
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1340..1348

                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                This issue has a mass of 109.

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

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

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

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

                                                                                                                                                                                                                                                                Refactorings

                                                                                                                                                                                                                                                                Further Reading

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

                                                                                                                                                                                                                                                                Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
                                                                                                                                                                                                                                                                  value = +value
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
                                                                                                                                                                                                                                                                  this[offset] = (value & 0xff)
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1617..1624

                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                This issue has a mass of 106.

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

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

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

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

                                                                                                                                                                                                                                                                Refactorings

                                                                                                                                                                                                                                                                Further Reading

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

                                                                                                                                                                                                                                                                Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
                                                                                                                                                                                                                                                                  value = +value
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
                                                                                                                                                                                                                                                                  this[offset] = (value >>> 8)
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1608..1615

                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                This issue has a mass of 106.

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

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

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

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

                                                                                                                                                                                                                                                                Refactorings

                                                                                                                                                                                                                                                                Further Reading

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

                                                                                                                                                                                                                                                                Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
                                                                                                                                                                                                                                                                  value = +value
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
                                                                                                                                                                                                                                                                  this[offset] = (value & 0xff)
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1522..1529

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
                                                                                                                                                                                                                                                                  value = +value
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
                                                                                                                                                                                                                                                                  this[offset] = (value >>> 8)
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1513..1520

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

                                                                                                                                                                                                                                                                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 (typeof end.offset === 'number') {
                                                                                                                                                                                                                                                                        let pos = this.fromOffset(end.offset)
                                                                                                                                                                                                                                                                        endLine = pos.line
                                                                                                                                                                                                                                                                        endColumn = pos.col
                                                                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2963..2970

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

                                                                                                                                                                                                                                                                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 (typeof start.offset === 'number') {
                                                                                                                                                                                                                                                                        let pos = this.fromOffset(start.offset)
                                                                                                                                                                                                                                                                        line = pos.line
                                                                                                                                                                                                                                                                        column = pos.col
                                                                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2971..2978

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

                                                                                                                                                                                                                                                                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 (++i < byteLength && (mul *= 0x100)) {
                                                                                                                                                                                                                                                                    if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
                                                                                                                                                                                                                                                                      sub = 1
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1589..1594

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

                                                                                                                                                                                                                                                                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 (--i >= 0 && (mul *= 0x100)) {
                                                                                                                                                                                                                                                                    if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
                                                                                                                                                                                                                                                                      sub = 1
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1566..1571

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  then(onFulfilled, onRejected) {
                                                                                                                                                                                                                                                                    if (process.env.NODE_ENV !== 'production') {
                                                                                                                                                                                                                                                                      if (!('from' in this._opts)) {
                                                                                                                                                                                                                                                                        warnOnce(
                                                                                                                                                                                                                                                                          'Without `from` option PostCSS could generate wrong source map ' +
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 3571..3582

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  then(onFulfilled, onRejected) {
                                                                                                                                                                                                                                                                    if (process.env.NODE_ENV !== 'production') {
                                                                                                                                                                                                                                                                      if (!('from' in this.opts)) {
                                                                                                                                                                                                                                                                        warnOnce(
                                                                                                                                                                                                                                                                          'Without `from` option PostCSS could generate wrong source map ' +
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4212..4224

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

                                                                                                                                                                                                                                                                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 writeFloat (buf, value, offset, littleEndian, noAssert) {
                                                                                                                                                                                                                                                                  value = +value
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) {
                                                                                                                                                                                                                                                                    checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1672..1680

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

                                                                                                                                                                                                                                                                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 writeDouble (buf, value, offset, littleEndian, noAssert) {
                                                                                                                                                                                                                                                                  value = +value
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) {
                                                                                                                                                                                                                                                                    checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1654..1662

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

                                                                                                                                                                                                                                                                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 (i.nodes && (i.parent !== root || root.first !== i)) {
                                                                                                                                                                                                                                                                        if (typeof i.raws.before !== 'undefined') {
                                                                                                                                                                                                                                                                          value = i.raws.before
                                                                                                                                                                                                                                                                          if (value.includes('\n')) {
                                                                                                                                                                                                                                                                            value = value.replace(/[^\n]+$/, '')
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5916..5924

                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                                                                                Refactorings

                                                                                                                                                                                                                                                                Further Reading

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

                                                                                                                                                                                                                                                                      if (i.nodes && i.nodes.length > 0) {
                                                                                                                                                                                                                                                                        if (typeof i.raws.after !== 'undefined') {
                                                                                                                                                                                                                                                                          value = i.raws.after
                                                                                                                                                                                                                                                                          if (value.includes('\n')) {
                                                                                                                                                                                                                                                                            value = value.replace(/[^\n]+$/, '')
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5982..5990

                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                                                                                Refactorings

                                                                                                                                                                                                                                                                Further Reading

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

                                                                                                                                                                                                                                                                Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) checkOffset(offset, 4, this.length)
                                                                                                                                                                                                                                                                  return ieee754.read(this, offset, true, 23, 4)
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1443..1447
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1449..1453
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1455..1459

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) checkOffset(offset, 8, this.length)
                                                                                                                                                                                                                                                                  return ieee754.read(this, offset, true, 52, 8)
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1437..1441
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1443..1447
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1455..1459

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) checkOffset(offset, 8, this.length)
                                                                                                                                                                                                                                                                  return ieee754.read(this, offset, false, 52, 8)
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1437..1441
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1443..1447
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1449..1453

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
                                                                                                                                                                                                                                                                  offset = offset >>> 0
                                                                                                                                                                                                                                                                  if (!noAssert) checkOffset(offset, 4, this.length)
                                                                                                                                                                                                                                                                  return ieee754.read(this, offset, false, 23, 4)
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1437..1441
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1449..1453
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1455..1459

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

                                                                                                                                                                                                                                                                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 (let id in this.indexes) {
                                                                                                                                                                                                                                                                      index = this.indexes[id]
                                                                                                                                                                                                                                                                      if (existIndex < index) {
                                                                                                                                                                                                                                                                        this.indexes[id] = index + nodes.length
                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2400..2405

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                    for (let id in this.indexes) {
                                                                                                                                                                                                                                                                      index = this.indexes[id]
                                                                                                                                                                                                                                                                      if (existIndex <= index) {
                                                                                                                                                                                                                                                                        this.indexes[id] = index + nodes.length
                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2380..2385

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                      (revLookup[b64.charCodeAt(i)] << 10) |
                                                                                                                                                                                                                                                                      (revLookup[b64.charCodeAt(i + 1)] << 4) |
                                                                                                                                                                                                                                                                      (revLookup[b64.charCodeAt(i + 2)] >> 2)
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 97..99

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                      (revLookup[b64.charCodeAt(i)] << 18) |
                                                                                                                                                                                                                                                                      (revLookup[b64.charCodeAt(i + 1)] << 12) |
                                                                                                                                                                                                                                                                      (revLookup[b64.charCodeAt(i + 2)] << 6) |
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 115..117

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  next() {
                                                                                                                                                                                                                                                                    if (!this.parent) return undefined
                                                                                                                                                                                                                                                                    let index = this.parent.index(this)
                                                                                                                                                                                                                                                                    return this.parent.nodes[index + 1]
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4440..4444

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  prev() {
                                                                                                                                                                                                                                                                    if (!this.parent) return undefined
                                                                                                                                                                                                                                                                    let index = this.parent.index(this)
                                                                                                                                                                                                                                                                    return this.parent.nodes[index - 1]
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4405..4409

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                Object.defineProperty(Buffer.prototype, 'parent', {
                                                                                                                                                                                                                                                                  enumerable: true,
                                                                                                                                                                                                                                                                  get: function () {
                                                                                                                                                                                                                                                                    if (!Buffer.isBuffer(this)) return undefined
                                                                                                                                                                                                                                                                    return this.buffer
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 245..251

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

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                Object.defineProperty(Buffer.prototype, 'offset', {
                                                                                                                                                                                                                                                                  enumerable: true,
                                                                                                                                                                                                                                                                  get: function () {
                                                                                                                                                                                                                                                                    if (!Buffer.isBuffer(this)) return undefined
                                                                                                                                                                                                                                                                    return this.byteOffset
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 237..243

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

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

                                                                                                                                                                                                                                                                    if (this.current.nodes && this.current.nodes.length) {
                                                                                                                                                                                                                                                                      this.current.raws.semicolon = this.semicolon
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4981..4983
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4999..5001

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

                                                                                                                                                                                                                                                                    if (this.current.nodes && this.current.nodes.length) {
                                                                                                                                                                                                                                                                      this.current.raws.semicolon = this.semicolon
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2164..2166
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4981..4983

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

                                                                                                                                                                                                                                                                    if (this.current.nodes && this.current.nodes.length) {
                                                                                                                                                                                                                                                                      this.current.raws.semicolon = this.semicolon
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2164..2166
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4999..5001

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  unnamedAtrule(node, token) {
                                                                                                                                                                                                                                                                    throw this.input.error(
                                                                                                                                                                                                                                                                      'At-rule without name',
                                                                                                                                                                                                                                                                      { offset: token[2] },
                                                                                                                                                                                                                                                                      { offset: token[2] + token[1].length }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4964..4970

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  doubleColon(token) {
                                                                                                                                                                                                                                                                    throw this.input.error(
                                                                                                                                                                                                                                                                      'Double colon',
                                                                                                                                                                                                                                                                      { offset: token[2] },
                                                                                                                                                                                                                                                                      { offset: token[2] + token[1].length }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5262..5268

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  if (start < 0) {
                                                                                                                                                                                                                                                                    start += len
                                                                                                                                                                                                                                                                    if (start < 0) start = 0
                                                                                                                                                                                                                                                                  } else if (start > len) {
                                                                                                                                                                                                                                                                    start = len
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1268..1273

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

                                                                                                                                                                                                                                                                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 (end < 0) {
                                                                                                                                                                                                                                                                    end += len
                                                                                                                                                                                                                                                                    if (end < 0) end = 0
                                                                                                                                                                                                                                                                  } else if (end > len) {
                                                                                                                                                                                                                                                                    end = len
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1261..1266

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

                                                                                                                                                                                                                                                                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 (!noAssert) {
                                                                                                                                                                                                                                                                    var limit = Math.pow(2, (8 * byteLength) - 1)
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                    checkInt(this, value, offset, byteLength, limit - 1, -limit)
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1579..1583

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  if (!noAssert) {
                                                                                                                                                                                                                                                                    var limit = Math.pow(2, (8 * byteLength) - 1)
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                    checkInt(this, value, offset, byteLength, limit - 1, -limit)
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1556..1560

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                    if (baseCharsetUri.test(text) || baseUri.test(text)) {
                                                                                                                                                                                                                                                                      return fromBase64(text.substr(RegExp.lastMatch.length))
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5423..5425

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  unclosedBracket(bracket) {
                                                                                                                                                                                                                                                                    throw this.input.error(
                                                                                                                                                                                                                                                                      'Unclosed bracket',
                                                                                                                                                                                                                                                                      { offset: bracket[2] },
                                                                                                                                                                                                                                                                      { offset: bracket[2] + 1 }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5246..5252

                                                                                                                                                                                                                                                                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 (charsetUri.test(text) || uri.test(text)) {
                                                                                                                                                                                                                                                                      return decodeURIComponent(text.substr(RegExp.lastMatch.length))
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5427..5429

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  unexpectedClose(token) {
                                                                                                                                                                                                                                                                    throw this.input.error(
                                                                                                                                                                                                                                                                      'Unexpected }',
                                                                                                                                                                                                                                                                      { offset: token[2] },
                                                                                                                                                                                                                                                                      { offset: token[2] + 1 }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5238..5244

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  append(...children) {
                                                                                                                                                                                                                                                                    if (!this.proxyOf.nodes) this.nodes = []
                                                                                                                                                                                                                                                                    return super.append(...children)
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2208..2211

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  prepend(...children) {
                                                                                                                                                                                                                                                                    if (!this.proxyOf.nodes) this.nodes = []
                                                                                                                                                                                                                                                                    return super.prepend(...children)
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2203..2206

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  constructor(defaults) {
                                                                                                                                                                                                                                                                    super(defaults)
                                                                                                                                                                                                                                                                    this.type = 'root'
                                                                                                                                                                                                                                                                    if (!this.nodes) this.nodes = []
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5709..5713

                                                                                                                                                                                                                                                                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 (RE_AT_END.lastIndex === 0) {
                                                                                                                                                                                                                                                                          next = css.length - 1
                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                          next = RE_AT_END.lastIndex - 2
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 6343..6347

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  constructor(defaults) {
                                                                                                                                                                                                                                                                    super(defaults)
                                                                                                                                                                                                                                                                    this.type = 'rule'
                                                                                                                                                                                                                                                                    if (!this.nodes) this.nodes = []
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 5647..5651

                                                                                                                                                                                                                                                                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 (RE_WORD_END.lastIndex === 0) {
                                                                                                                                                                                                                                                                            next = css.length - 1
                                                                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                                                                            next = RE_WORD_END.lastIndex - 2
                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 6281..6285

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  cloneBefore(overrides = {}) {
                                                                                                                                                                                                                                                                    let cloned = this.clone(overrides)
                                                                                                                                                                                                                                                                    this.parent.insertBefore(this, cloned)
                                                                                                                                                                                                                                                                    return cloned
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4339..4343

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  cloneAfter(overrides = {}) {
                                                                                                                                                                                                                                                                    let cloned = this.clone(overrides)
                                                                                                                                                                                                                                                                    this.parent.insertAfter(this, cloned)
                                                                                                                                                                                                                                                                    return cloned
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 4345..4349

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2039..2039

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  for (var i = 0; i < len; ++i) {
                                                                                                                                                                                                                                                                    if (thisCopy[i] !== targetCopy[i]) {
                                                                                                                                                                                                                                                                      x = thisCopy[i]
                                                                                                                                                                                                                                                                      y = targetCopy[i]
                                                                                                                                                                                                                                                                      break
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 531..537

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  for (var i = 0, len = Math.min(x, y); i < len; ++i) {
                                                                                                                                                                                                                                                                    if (a[i] !== b[i]) {
                                                                                                                                                                                                                                                                      x = a[i]
                                                                                                                                                                                                                                                                      y = b[i]
                                                                                                                                                                                                                                                                      break
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 841..847

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 2043..2043

                                                                                                                                                                                                                                                                Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                Tuning

                                                                                                                                                                                                                                                                This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                                                                                Refactorings

                                                                                                                                                                                                                                                                Further Reading

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

                                                                                                                                                                                                                                                                  if (!noAssert) {
                                                                                                                                                                                                                                                                    var maxBytes = Math.pow(2, 8 * byteLength) - 1
                                                                                                                                                                                                                                                                    checkInt(this, value, offset, byteLength, maxBytes, 0)
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1471..1474

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1978..1978

                                                                                                                                                                                                                                                                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

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

                                                                                                                                                                                                                                                                  if (!noAssert) {
                                                                                                                                                                                                                                                                    var maxBytes = Math.pow(2, 8 * byteLength) - 1
                                                                                                                                                                                                                                                                    checkInt(this, value, offset, byteLength, maxBytes, 0)
                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1490..1493

                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                  for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in thirdparty/postcss-safe-parser.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                thirdparty/postcss-safe-parser.js on lines 1983..1983

                                                                                                                                                                                                                                                                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