pinclub/pinclub

View on GitHub
public/libs/markdownit.js

Summary

Maintainability
F
2 mos
Test Coverage

File markdownit.js has 5719 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! markdown-it 3.0.3 https://github.com//markdown-it/markdown-it @license MIT */!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.markdownit=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
// List of valid entities
//
// Generate with ./support/entities.js script
//
Severity: Major
Found in public/libs/markdownit.js - About 2 wks to fix

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

    /*! markdown-it 3.0.3 https://github.com//markdown-it/markdown-it @license MIT */!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.markdownit=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
    // List of valid entities
    //
    // Generate with ./support/entities.js script
    //
    Severity: Major
    Found in public/libs/markdownit.js - About 1 wk to fix

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

      },{}],51:[function(require,module,exports){
      (function (root, factory) {
        if (typeof define === 'function' && define.amd) {
          // AMD. Register as an anonymous module.
          define([], function () {
      Severity: Major
      Found in public/libs/markdownit.js - About 2 days to fix

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

        },{}],27:[function(require,module,exports){
        // Lists
        
        'use strict';
        
        
        Severity: Major
        Found in public/libs/markdownit.js - About 6 hrs to fix

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

          },{}],4:[function(require,module,exports){
          // List of valid url schemas, accorting to commonmark spec
          // http://jgm.github.io/CommonMark/spec.html#autolinks
          
          'use strict';
          Severity: Major
          Found in public/libs/markdownit.js - About 6 hrs to fix

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

            },{}],5:[function(require,module,exports){
            // Utilities
            //
            'use strict';
            
            
            Severity: Major
            Found in public/libs/markdownit.js - About 6 hrs to fix

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

              },{}],18:[function(require,module,exports){
              /**
               * class Renderer
               *
               * Generates HTML from parsed token stream. Each instance has independent
              Severity: Major
              Found in public/libs/markdownit.js - About 5 hrs to fix

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

                module.exports = function list(state, startLine, endLine, silent) {
                  var nextLine,
                      indent,
                      oldTShift,
                      oldIndent,
                Severity: Major
                Found in public/libs/markdownit.js - About 4 hrs to fix

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

                  },{}],34:[function(require,module,exports){
                  // Replace link-like texts with link nodes.
                  //
                  // Currently restricted by `inline.validateLink()` to http/https/ftp
                  //
                  Severity: Major
                  Found in public/libs/markdownit.js - About 4 hrs to fix

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

                    },{}],41:[function(require,module,exports){
                    // Process *this* and _that_
                    
                    'use strict';
                    
                    
                    Severity: Major
                    Found in public/libs/markdownit.js - About 4 hrs to fix

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

                      },{"./common/utils":5}],19:[function(require,module,exports){
                      /**
                       * class Ruler
                       *
                       * Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and
                      Severity: Major
                      Found in public/libs/markdownit.js - About 4 hrs to fix

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

                        },{}],29:[function(require,module,exports){
                        'use strict';
                        
                        
                        var parseLinkDestination = require('../helpers/parse_link_destination');
                        Severity: Major
                        Found in public/libs/markdownit.js - About 4 hrs to fix

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

                          },{"../common/html_re":3}],45:[function(require,module,exports){
                          // Process ![image](<src> "title")
                          
                          'use strict';
                          
                          
                          Severity: Major
                          Found in public/libs/markdownit.js - About 4 hrs to fix

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

                            },{"../common/utils":5}],11:[function(require,module,exports){
                            // Main perser class
                            
                            'use strict';
                            
                            
                            Severity: Major
                            Found in public/libs/markdownit.js - About 4 hrs to fix

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

                              },{}],31:[function(require,module,exports){
                              // GFM table, non-standard
                              
                              'use strict';
                              
                              
                              Severity: Major
                              Found in public/libs/markdownit.js - About 4 hrs to fix

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

                                },{"../helpers/normalize_reference":7,"../helpers/parse_link_destination":8,"../helpers/parse_link_title":10}],30:[function(require,module,exports){
                                // Parser state class
                                
                                'use strict';
                                
                                
                                Severity: Major
                                Found in public/libs/markdownit.js - About 4 hrs to fix

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

                                  module.exports = function reference(state, startLine, _endLine, silent) {
                                    var ch,
                                        destEndPos,
                                        destEndLineNo,
                                        endLine,
                                  Severity: Major
                                  Found in public/libs/markdownit.js - About 3 hrs to fix

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

                                    module.exports = function image(state, silent) {
                                      var code,
                                          href,
                                          label,
                                          labelEnd,
                                    Severity: Major
                                    Found in public/libs/markdownit.js - About 3 hrs to fix

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

                                      },{"../helpers/normalize_reference":7,"../helpers/parse_link_destination":8,"../helpers/parse_link_label":9,"../helpers/parse_link_title":10}],46:[function(require,module,exports){
                                      // Process [link](<to> "stuff")
                                      
                                      'use strict';
                                      
                                      
                                      Severity: Major
                                      Found in public/libs/markdownit.js - About 3 hrs to fix

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

                                        module.exports = function table(state, startLine, endLine, silent) {
                                          var ch, lineText, pos, i, nextLine, rows,
                                              aligns, t, tableLines, tbodyLines;
                                        
                                          // should have at least three lines
                                        Severity: Major
                                        Found in public/libs/markdownit.js - About 3 hrs to fix

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

                                          module.exports = function link(state, silent) {
                                            var code,
                                                href,
                                                label,
                                                labelEnd,
                                          Severity: Major
                                          Found in public/libs/markdownit.js - About 3 hrs to fix

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

                                            },{"./ruler":19,"./rules_core/block":32,"./rules_core/inline":33,"./rules_core/linkify":34,"./rules_core/normalize":35,"./rules_core/replacements":36,"./rules_core/smartquotes":37,"./rules_core/state_core":38}],14:[function(require,module,exports){
                                            /** internal
                                             * class ParserInline
                                             *
                                             * Tokenizes paragraph content.
                                            Severity: Major
                                            Found in public/libs/markdownit.js - About 3 hrs to fix

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

                                              },{}],37:[function(require,module,exports){
                                              // Convert straight quotation marks to typographic ones
                                              //
                                              'use strict';
                                              
                                              
                                              Severity: Major
                                              Found in public/libs/markdownit.js - About 3 hrs to fix

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

                                                module.exports = function linkify(state) {
                                                  var i, j, l, tokens, token, text, nodes, ln, pos, level, htmlLinkLevel,
                                                      blockTokens = state.tokens,
                                                      linkifier = null, links, autolinker;
                                                
                                                
                                                Severity: Major
                                                Found in public/libs/markdownit.js - About 3 hrs to fix

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

                                                  },{}],49:[function(require,module,exports){
                                                  'use strict';
                                                  
                                                  
                                                  // parse sequence of markers,
                                                  Severity: Major
                                                  Found in public/libs/markdownit.js - About 2 hrs to fix

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

                                                    module.exports = function smartquotes(state) {
                                                      /*eslint max-depth:0*/
                                                      var i, token, text, t, pos, max, thisLevel, lastSpace, nextSpace, item,
                                                          canOpen, canClose, j, isSingle, blkIdx, tokens,
                                                          stack;
                                                    Severity: Major
                                                    Found in public/libs/markdownit.js - About 2 hrs to fix

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

                                                      module.exports = function emphasis(state, silent) {
                                                        var startCount,
                                                            count,
                                                            found,
                                                            oldCount,
                                                      Severity: Major
                                                      Found in public/libs/markdownit.js - About 2 hrs to fix

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

                                                        },{}],20:[function(require,module,exports){
                                                        // Block quotes
                                                        
                                                        'use strict';
                                                        
                                                        
                                                        Severity: Major
                                                        Found in public/libs/markdownit.js - About 2 hrs to fix

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

                                                          module.exports = function blockquote(state, startLine, endLine, silent) {
                                                            var nextLine, lastLineEmpty, oldTShift, oldBMarks, oldIndent, oldParentType, lines,
                                                                terminatorRules,
                                                                i, l, terminate,
                                                                pos = state.bMarks[startLine] + state.tShift[startLine],
                                                          Severity: Major
                                                          Found in public/libs/markdownit.js - About 2 hrs to fix

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

                                                            },{"./common/utils":5,"./helpers":6,"./parser_block":12,"./parser_core":13,"./parser_inline":14,"./presets/commonmark":15,"./presets/default":16,"./presets/zero":17,"./renderer":18}],12:[function(require,module,exports){
                                                            /** internal
                                                             * class ParserBlock
                                                             *
                                                             * Block-level tokenizer.
                                                            Severity: Major
                                                            Found in public/libs/markdownit.js - About 2 hrs to fix

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

                                                              },{}],39:[function(require,module,exports){
                                                              // Process autolinks '<protocol:...>'
                                                              
                                                              'use strict';
                                                              
                                                              
                                                              Severity: Major
                                                              Found in public/libs/markdownit.js - About 2 hrs to fix

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

                                                                },{}],2:[function(require,module,exports){
                                                                // List of valid html blocks names, accorting to commonmark spec
                                                                // http://jgm.github.io/CommonMark/spec.html#html-blocks
                                                                
                                                                'use strict';
                                                                Severity: Major
                                                                Found in public/libs/markdownit.js - About 2 hrs to fix

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

                                                                  module.exports = function strikethrough(state, silent) {
                                                                    var startCount,
                                                                        count,
                                                                        tagCount,
                                                                        found,
                                                                  Severity: Major
                                                                  Found in public/libs/markdownit.js - About 2 hrs to fix

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

                                                                    },{}],8:[function(require,module,exports){
                                                                    // Parse link destination
                                                                    //
                                                                    'use strict';
                                                                    
                                                                    
                                                                    Severity: Minor
                                                                    Found in public/libs/markdownit.js - About 2 hrs to fix

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

                                                                      },{}],22:[function(require,module,exports){
                                                                      // fences (``` lang, ~~~ lang)
                                                                      
                                                                      'use strict';
                                                                      
                                                                      
                                                                      Severity: Minor
                                                                      Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                        },{"./common/utils":5,"./ruler":19,"./rules_inline/autolink":39,"./rules_inline/backticks":40,"./rules_inline/emphasis":41,"./rules_inline/entity":42,"./rules_inline/escape":43,"./rules_inline/html_inline":44,"./rules_inline/image":45,"./rules_inline/link":46,"./rules_inline/newline":47,"./rules_inline/state_inline":48,"./rules_inline/strikethrough":49,"./rules_inline/text":50}],15:[function(require,module,exports){
                                                                        // Commonmark default options
                                                                        
                                                                        'use strict';
                                                                        
                                                                        
                                                                        Severity: Minor
                                                                        Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                          module.exports = function autolink(state, silent) {
                                                                            var tail, linkMatch, emailMatch, url, fullUrl, pos = state.pos;
                                                                          
                                                                            if (state.src.charCodeAt(pos) !== 0x3C/* < */) { return false; }
                                                                          
                                                                          
                                                                          Severity: Minor
                                                                          Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                            module.exports = function fence(state, startLine, endLine, silent) {
                                                                              var marker, len, params, nextLine, mem,
                                                                                  haveEndMarker = false,
                                                                                  pos = state.bMarks[startLine] + state.tShift[startLine],
                                                                                  max = state.eMarks[startLine];
                                                                            Severity: Minor
                                                                            Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                              module.exports = function parseLinkDestination(str, pos, max) {
                                                                                var code, level,
                                                                                    lines = 0,
                                                                                    start = pos,
                                                                                    result = {
                                                                              Severity: Minor
                                                                              Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                    processCandidateMatch : function(
                                                                                      matchStr, twitterMatch, twitterHandlePrefixWhitespaceChar, twitterHandle,
                                                                                      emailAddressMatch, urlMatch, protocolUrlMatch, wwwProtocolRelativeMatch, tldProtocolRelativeMatch
                                                                                    ) {
                                                                                      var protocolRelativeMatch = wwwProtocolRelativeMatch || tldProtocolRelativeMatch,
                                                                                Severity: Minor
                                                                                Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                  function StateBlock(src, md, env, tokens) {
                                                                                    var ch, s, start, pos, len, indent, indent_found;
                                                                                  
                                                                                    this.src = src;
                                                                                  
                                                                                  
                                                                                  Severity: Minor
                                                                                  Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                    },{}],28:[function(require,module,exports){
                                                                                    // Paragraph
                                                                                    
                                                                                    'use strict';
                                                                                    
                                                                                    
                                                                                    Severity: Minor
                                                                                    Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                      },{}],3:[function(require,module,exports){
                                                                                      // Regexps to match html elements
                                                                                      
                                                                                      'use strict';
                                                                                      
                                                                                      
                                                                                      Severity: Minor
                                                                                      Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                        module.exports = function paragraph(state, startLine/*, endLine*/) {
                                                                                          var endLine, content, terminate, i, l,
                                                                                              nextLine = startLine + 1,
                                                                                              terminatorRules;
                                                                                        
                                                                                        
                                                                                        Severity: Minor
                                                                                        Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                          function scanDelims(state, start) {
                                                                                            var pos = start, lastChar, nextChar, count,
                                                                                                isLastWhiteSpace, isLastPunctChar,
                                                                                                isNextWhiteSpace, isNextPunctChar,
                                                                                                can_open = true,
                                                                                          Severity: Minor
                                                                                          Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                            },{}],25:[function(require,module,exports){
                                                                                            // HTML block
                                                                                            
                                                                                            'use strict';
                                                                                            
                                                                                            
                                                                                            Severity: Minor
                                                                                            Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                  matcherRegex : (function() {
                                                                                                    var twitterRegex = /(^|[^\w])@(\w{1,15})/,              // For matching a twitter handle. Ex: @gregory_jacobs
                                                                                              
                                                                                                        emailRegex = /(?:[\-;:&=\+\$,\w\.]+@)/,             // something@ for email addresses (a.k.a. local-part)
                                                                                              
                                                                                              
                                                                                              Severity: Minor
                                                                                              Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                },{"../common/utils":5}],9:[function(require,module,exports){
                                                                                                // Parse link label
                                                                                                //
                                                                                                // this function assumes that first character ("[") already matches;
                                                                                                // returns the end of the label
                                                                                                Severity: Minor
                                                                                                Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                  },{}],36:[function(require,module,exports){
                                                                                                  // Simple typographyc replacements
                                                                                                  //
                                                                                                  // '' → ‘’
                                                                                                  // "" → “”. Set '«»' for Russian, '„“' for German, empty to disable
                                                                                                  Severity: Minor
                                                                                                  Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                    },{}],48:[function(require,module,exports){
                                                                                                    // Inline parser state
                                                                                                    
                                                                                                    'use strict';
                                                                                                    
                                                                                                    
                                                                                                    Severity: Minor
                                                                                                    Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                      module.exports = function parseLinkLabel(state, start, disableNested) {
                                                                                                        var level, found, marker, prevPos,
                                                                                                            labelEnd = -1,
                                                                                                            max = state.posMax,
                                                                                                            oldPos = state.pos;
                                                                                                      Severity: Minor
                                                                                                      Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                        },{}],10:[function(require,module,exports){
                                                                                                        // Parse link title
                                                                                                        //
                                                                                                        'use strict';
                                                                                                        
                                                                                                        
                                                                                                        Severity: Minor
                                                                                                        Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                          },{"../common/utils":5}],42:[function(require,module,exports){
                                                                                                          // Process html entity - &#123;, &#xAF;, &quot;, ...
                                                                                                          
                                                                                                          'use strict';
                                                                                                          
                                                                                                          
                                                                                                          Severity: Minor
                                                                                                          Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                            },{}],23:[function(require,module,exports){
                                                                                                            // heading (#, ##, ...)
                                                                                                            
                                                                                                            'use strict';
                                                                                                            
                                                                                                            
                                                                                                            Severity: Minor
                                                                                                            Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                              module.exports = function parseLinkTitle(str, pos, max) {
                                                                                                                var code,
                                                                                                                    marker,
                                                                                                                    lines = 0,
                                                                                                                    start = pos,
                                                                                                              Severity: Minor
                                                                                                              Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                module.exports = function html_block(state, startLine, endLine, silent) {
                                                                                                                  var ch, match, nextLine,
                                                                                                                      pos = state.bMarks[startLine],
                                                                                                                      max = state.eMarks[startLine],
                                                                                                                      shift = state.tShift[startLine];
                                                                                                                Severity: Minor
                                                                                                                Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                  },{}],44:[function(require,module,exports){
                                                                                                                  // Process html tags
                                                                                                                  
                                                                                                                  'use strict';
                                                                                                                  
                                                                                                                  
                                                                                                                  Severity: Minor
                                                                                                                  Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                    module.exports = function heading(state, startLine, endLine, silent) {
                                                                                                                      var ch, level, tmp,
                                                                                                                          pos = state.bMarks[startLine] + state.tShift[startLine],
                                                                                                                          max = state.eMarks[startLine];
                                                                                                                    
                                                                                                                    
                                                                                                                    Severity: Minor
                                                                                                                    Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                      },{"../common/html_blocks":2}],26:[function(require,module,exports){
                                                                                                                      // lheading (---, ===)
                                                                                                                      
                                                                                                                      'use strict';
                                                                                                                      
                                                                                                                      
                                                                                                                      Severity: Minor
                                                                                                                      Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                        module.exports = function lheading(state, startLine, endLine/*, silent*/) {
                                                                                                                          var marker, pos, max,
                                                                                                                              next = startLine + 1;
                                                                                                                        
                                                                                                                          if (next >= endLine) { return false; }
                                                                                                                        Severity: Minor
                                                                                                                        Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                          },{"../helpers/normalize_reference":7,"../helpers/parse_link_destination":8,"../helpers/parse_link_label":9,"../helpers/parse_link_title":10}],47:[function(require,module,exports){
                                                                                                                          // Proceess '\n'
                                                                                                                          
                                                                                                                          'use strict';
                                                                                                                          
                                                                                                                          
                                                                                                                          Severity: Minor
                                                                                                                          Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                            },{"../common/entities":1,"../common/utils":5}],43:[function(require,module,exports){
                                                                                                                            // Proceess escaped chars and hardbreaks
                                                                                                                            
                                                                                                                            'use strict';
                                                                                                                            
                                                                                                                            
                                                                                                                            Severity: Minor
                                                                                                                            Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                              },{}],17:[function(require,module,exports){
                                                                                                                              // "Zero" preset, with nothing enabled. Useful for manual configuring of simple
                                                                                                                              // modes. For example, to parse bold/italic only.
                                                                                                                              
                                                                                                                              'use strict';
                                                                                                                              Severity: Minor
                                                                                                                              Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                                ParserBlock.prototype.tokenize = function (state, startLine, endLine) {
                                                                                                                                  var ok, i,
                                                                                                                                      rules = this.ruler.getRules(''),
                                                                                                                                      len = rules.length,
                                                                                                                                      line = startLine,
                                                                                                                                Severity: Minor
                                                                                                                                Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                                      link : function( textOrHtml ) {
                                                                                                                                        var me = this,  // for closure
                                                                                                                                            htmlParser = this.getHtmlParser(),
                                                                                                                                            htmlCharacterEntitiesRegex = this.htmlCharacterEntitiesRegex,
                                                                                                                                            anchorTagStackCount = 0,  // used to only process text around anchor tags, and any inner text/html they may have
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                                    },{"../common/url_schemas":4,"../common/utils":5}],40:[function(require,module,exports){
                                                                                                                                    // Parse backticks
                                                                                                                                    
                                                                                                                                    'use strict';
                                                                                                                                    
                                                                                                                                    
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                                      module.exports = function newline(state, silent) {
                                                                                                                                        var pmax, max, pos = state.pos;
                                                                                                                                      
                                                                                                                                        if (state.src.charCodeAt(pos) !== 0x0A/* \n */) { return false; }
                                                                                                                                      
                                                                                                                                      
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in public/libs/markdownit.js - About 1 hr to fix

                                                                                                                                        Function processCandidateMatch has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                              matchStr, twitterMatch, twitterHandlePrefixWhitespaceChar, twitterHandle,
                                                                                                                                              emailAddressMatch, urlMatch, protocolUrlMatch, wwwProtocolRelativeMatch, tldProtocolRelativeMatch
                                                                                                                                        Severity: Major
                                                                                                                                        Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                                          function createLinkifier() {
                                                                                                                                            var links = [];
                                                                                                                                            var autolinker = new Autolinker({
                                                                                                                                              stripPrefix: false,
                                                                                                                                              url: true,
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                                            module.exports = function backtick(state, silent) {
                                                                                                                                              var start, max, marker, matchStart, matchEnd,
                                                                                                                                                  pos = state.pos,
                                                                                                                                                  ch = state.src.charCodeAt(pos);
                                                                                                                                            
                                                                                                                                            
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in public/libs/markdownit.js - About 1 hr to fix

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

                                                                                                                                              module.exports = function entity(state, silent) {
                                                                                                                                                var ch, code, match, pos = state.pos, max = state.posMax;
                                                                                                                                              
                                                                                                                                                if (state.src.charCodeAt(pos) !== 0x26/* & */) { return false; }
                                                                                                                                              
                                                                                                                                              
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in public/libs/markdownit.js - About 1 hr to fix

                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                Open

                                                                                                                                                      if(
                                                                                                                                                        ( twitterMatch && !this.twitter ) || ( emailAddressMatch && !this.email ) || ( urlMatch && !this.urls ) ||
                                                                                                                                                        !this.matchValidator.isValidMatch( urlMatch, protocolUrlMatch, protocolRelativeMatch )
                                                                                                                                                      ) {
                                                                                                                                                        return null;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in public/libs/markdownit.js - About 1 hr to fix

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                            if (!silent) { state.pending += entities[match[1]]; }
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in public/libs/markdownit.js - About 45 mins to fix

                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                    Open

                                                                                                                                                              if (isSingle) {
                                                                                                                                                                token.content = replaceAt(token.content, t.index, APOSTROPHE);
                                                                                                                                                              }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in public/libs/markdownit.js - About 45 mins to fix

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

                                                                                                                                                                for (j = stack.length - 1; j >= 0; j--) {
                                                                                                                                                                  item = stack[j];
                                                                                                                                                                  if (stack[j].level < thisLevel) { break; }
                                                                                                                                                                  if (item.single === isSingle && stack[j].level === thisLevel) {
                                                                                                                                                                    item = stack[j];
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in public/libs/markdownit.js - About 45 mins to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                  if (pos) {
                                                                                                                                                                    level = level;
                                                                                                                                                                    nodes.push({
                                                                                                                                                                      type: 'text',
                                                                                                                                                                      content: text.slice(0, pos),
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in public/libs/markdownit.js - About 45 mins to fix

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                    if (stack.length === 0) { break; }
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in public/libs/markdownit.js - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                      if (!state.md.inline.validateLink(links[ln].url)) { continue; }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/markdownit.js - About 45 mins to fix

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                        if (newCount < oldCount) {
                                                                                                                                                                          stack.push(oldCount - newCount);
                                                                                                                                                                          break;
                                                                                                                                                                        }
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in public/libs/markdownit.js - About 45 mins to fix

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

                                                                                                                                                                rules.image = function (tokens, idx, options, env, self) {
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in public/libs/markdownit.js - About 35 mins to fix

                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                  Open

                                                                                                                                                                    if (!res.ok) { return false; }
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                    Open

                                                                                                                                                                      return true;
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                      Open

                                                                                                                                                                          if (block_names[match[1].toLowerCase()] !== true) { return false; }
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                        Open

                                                                                                                                                                          return true;
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                          Open

                                                                                                                                                                            return true;
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                            Open

                                                                                                                                                                                  if (!match) { return false; }
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                              Open

                                                                                                                                                                                  if (silent) { return true; }
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                Open

                                                                                                                                                                                  if (silent) { return true; }
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                  Open

                                                                                                                                                                                    if (silent) { return true; }
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                    Open

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

                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                      Open

                                                                                                                                                                                        if (aligns.length !== rows.length) { return false; }
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                        Open

                                                                                                                                                                                            return true;
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                          Open

                                                                                                                                                                                              if (/(^>|^->|--|-$)/.test(content.slice(4, -3))) { return false; }
                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                          Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                            Open

                                                                                                                                                                                              return pos;
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                              Open

                                                                                                                                                                                                if (!/^[-:| ]+$/.test(lineText)) { return false; }
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                Open

                                                                                                                                                                                                    if (typeof state.env.references === 'undefined') { return false; }
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                    if (marker !== 0x2D/* - */ && marker !== 0x3D/* = */) { return false; }
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                      return true;
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                      Open

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

                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                            if (!/^:?-+:?$/.test(t)) { return false; }
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                            return true;
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                            Open

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

                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                              Open

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

                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                  if (c >= 0x0E && c <= 0x1F) { return false; }
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                        if (!match) { return false; }
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                    Open

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

                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          if (typeof state.env.references === 'undefined') { return false; }
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                          return true;
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                            if (lineText.indexOf('|') === -1) { return false; }
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                              return result;
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                if (!state.md.inline.validateLink(res.str)) { return false; }
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                    if (!state.md.inline.validateLink(fullUrl)) { return false; }
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                    return true;
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                    Open

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

                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                        if (c === 0x0B) { return false; }
                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                      Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                          return true;
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                            if (c > 0x10FFFF) { return false; }
                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                          Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                              return true;
                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                            Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                  return -1;
                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                              Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                  if (rows <= 2) { return false; }
                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                      return true;
                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                  Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                    Open

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

                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                        return true;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                        Open

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

                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                            return true;
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                              if (silent) { return true; }
                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                return true;
                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                              Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                  return ch;
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                    return true;
                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                  Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                      if (silent) { return true; }
                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                    Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                        if (c >= 0x7F && c <= 0x9F) { return false; }
                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                      Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                          if (code < 0xD900 || code > 0xDBFF) { return '\uFFFD'; }
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in public/libs/markdownit.js - About 30 mins to fix

                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                            if (pos < max) { return false; }
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in public/libs/markdownit.js - About 30 mins to fix

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

                                                                                                                                                                                                                                                                              if (pos < max && state.src.charCodeAt(pos) === 0x28/* ( */) {
                                                                                                                                                                                                                                                                                //
                                                                                                                                                                                                                                                                                // Inline link
                                                                                                                                                                                                                                                                                //
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 4 days to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 6934..7025

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

                                                                                                                                                                                                                                                                            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 (pos < max && state.src.charCodeAt(pos) === 0x28/* ( */) {
                                                                                                                                                                                                                                                                                //
                                                                                                                                                                                                                                                                                // Inline link
                                                                                                                                                                                                                                                                                //
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 4 days to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 6777..6868

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

                                                                                                                                                                                                                                                                            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 (nextLine < endLine && !state.isEmpty(nextLine)) {
                                                                                                                                                                                                                                                                                terminatorRules = state.md.block.ruler.getRules('paragraph');
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
                                                                                                                                                                                                                                                                                  // this would be a code block normally, but after paragraph
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 5423..5441

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

                                                                                                                                                                                                                                                                            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 (nextLine < endLine && !state.isEmpty(nextLine)) {
                                                                                                                                                                                                                                                                                terminatorRules = state.md.block.ruler.getRules('references');
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
                                                                                                                                                                                                                                                                                  // this would be a code block normally, but after paragraph
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 5340..5358

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

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                            MarkdownIt.prototype.enable = function (list, ignoreInvalid) {
                                                                                                                                                                                                                                                                              var result = [];
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                              if (!Array.isArray(list)) { list = [ list ]; }
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3269..3284

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

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                            MarkdownIt.prototype.disable = function (list, ignoreInvalid) {
                                                                                                                                                                                                                                                                              var result = [];
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                              if (!Array.isArray(list)) { list = [ list ]; }
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3243..3259

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 181.

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                            Ruler.prototype.disable = function (list, ignoreInvalid) {
                                                                                                                                                                                                                                                                              if (!Array.isArray(list)) { list = [ list ]; }
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                              var result = [];
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 4462..4481

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

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                            Ruler.prototype.enable = function (list, ignoreInvalid) {
                                                                                                                                                                                                                                                                              if (!Array.isArray(list)) { list = [ list ]; }
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                              var result = [];
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 4515..4534

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

                                                                                                                                                                                                                                                                            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 (!silent) {
                                                                                                                                                                                                                                                                                  state.push({
                                                                                                                                                                                                                                                                                    type: 'link_open',
                                                                                                                                                                                                                                                                                    href: fullUrl,
                                                                                                                                                                                                                                                                                    target: '',
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 6316..6329

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 106.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                if (!silent) {
                                                                                                                                                                                                                                                                                  state.push({
                                                                                                                                                                                                                                                                                    type: 'link_open',
                                                                                                                                                                                                                                                                                    href: fullUrl,
                                                                                                                                                                                                                                                                                    target: '',
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 6344..6357

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                                                                                            tokens[item.token].content = replaceAt(
                                                                                                                                                                                                                                                                                              tokens[item.token].content, item.pos, state.md.options.quotes[0]);
                                                                                                                                                                                                                                                                                            token.content = replaceAt(token.content, t.index, state.md.options.quotes[1]);
                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 6239..6244

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 101.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                          if (isSingle) {
                                                                                                                                                                                                                                                                                            tokens[item.token].content = replaceAt(
                                                                                                                                                                                                                                                                                              tokens[item.token].content, item.pos, state.md.options.quotes[2]);
                                                                                                                                                                                                                                                                                            token.content = replaceAt(
                                                                                                                                                                                                                                                                                              token.content, t.index, state.md.options.quotes[3]);
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 6244..6248

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 101.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                              options: {
                                                                                                                                                                                                                                                                                html:         false,        // Enable HTML tags in source
                                                                                                                                                                                                                                                                                xhtmlOut:     false,        // Use '/' to close single tags (<br />)
                                                                                                                                                                                                                                                                                breaks:       false,        // Convert '\n' in paragraphs into <br>
                                                                                                                                                                                                                                                                                langPrefix:   'language-',  // CSS language prefix for fenced blocks
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3751..3773
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3864..3886

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

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                  var classAttr = this.getClass(),
                                                                                                                                                                                                                                                                                      whitespaceRegex = this.whitespaceRegex,
                                                                                                                                                                                                                                                                                      indexOf = Autolinker.Util.indexOf,  // to support IE8 and below
                                                                                                                                                                                                                                                                                      classes = ( !classAttr ) ? [] : classAttr.split( whitespaceRegex ),
                                                                                                                                                                                                                                                                                      removeClasses = cssClass.split( whitespaceRegex ),
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 8520..8525

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

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                              options: {
                                                                                                                                                                                                                                                                                html:         true,         // Enable HTML tags in source
                                                                                                                                                                                                                                                                                xhtmlOut:     true,         // Use '/' to close single tags (<br />)
                                                                                                                                                                                                                                                                                breaks:       false,        // Convert '\n' in paragraphs into <br>
                                                                                                                                                                                                                                                                                langPrefix:   'language-',  // CSS language prefix for fenced blocks
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3824..3846
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3864..3886

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

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                                  var classAttr = this.getClass(),
                                                                                                                                                                                                                                                                                      whitespaceRegex = this.whitespaceRegex,
                                                                                                                                                                                                                                                                                      indexOf = Autolinker.Util.indexOf,  // to support IE8 and below
                                                                                                                                                                                                                                                                                      classes = ( !classAttr ) ? [] : classAttr.split( whitespaceRegex ),
                                                                                                                                                                                                                                                                                      newClasses = cssClass.split( whitespaceRegex ),
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 8545..8550

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

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                              options: {
                                                                                                                                                                                                                                                                                html:         false,        // Enable HTML tags in source
                                                                                                                                                                                                                                                                                xhtmlOut:     false,        // Use '/' to close single tags (<br />)
                                                                                                                                                                                                                                                                                breaks:       false,        // Convert '\n' in paragraphs into <br>
                                                                                                                                                                                                                                                                                langPrefix:   'language-',  // CSS language prefix for fenced blocks
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3751..3773
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3824..3846

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

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                            MarkdownIt.prototype.render = function (src, env) {
                                                                                                                                                                                                                                                                              env = env || {};
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                              return this.renderer.render(this.parse(src, env), this.options, env);
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3379..3383

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 63.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                            MarkdownIt.prototype.renderInline = function (src, env) {
                                                                                                                                                                                                                                                                              env = env || {};
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                              return this.renderer.render(this.parseInline(src, env), this.options, env);
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3345..3349

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 63.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                              for (var i = 0; i < _rules.length; i++) {
                                                                                                                                                                                                                                                                                this.ruler.push(_rules[i][0], _rules[i][1]);
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3644..3646

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 59.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                              if (!res.can_open) {
                                                                                                                                                                                                                                                                                state.pos += startCount;
                                                                                                                                                                                                                                                                                // Earlier we checked !silent, but this implementation does not need it
                                                                                                                                                                                                                                                                                state.pending += state.src.slice(start, state.pos);
                                                                                                                                                                                                                                                                                return true;
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 7225..7230

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 59.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                              if (!res.can_open) {
                                                                                                                                                                                                                                                                                state.pos += startCount;
                                                                                                                                                                                                                                                                                // Earlier we checked !silent, but this implementation does not need it
                                                                                                                                                                                                                                                                                state.pending += state.src.slice(start, state.pos);
                                                                                                                                                                                                                                                                                return true;
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 6501..6506

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                            rules.th_open     = function (tokens, idx /*, options, env */) {
                                                                                                                                                                                                                                                                              if (tokens[idx].align) {
                                                                                                                                                                                                                                                                                return '<th style="text-align:' + tokens[idx].align + '">';
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                              return '<th>';
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 4049..4054

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 59.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                              for (var i = 0; i < _rules.length; i++) {
                                                                                                                                                                                                                                                                                this.ruler.push(_rules[i][0], _rules[i][1]);
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3547..3549

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                            rules.td_open     = function (tokens, idx /*, options, env */) {
                                                                                                                                                                                                                                                                              if (tokens[idx].align) {
                                                                                                                                                                                                                                                                                return '<td style="text-align:' + tokens[idx].align + '">';
                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                              return '<td>';
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 4042..4047

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 59.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                              for (pos = labelEnd + 2; pos < max; pos++) {
                                                                                                                                                                                                                                                                                ch = str.charCodeAt(pos);
                                                                                                                                                                                                                                                                                if (ch === 0x0A) {
                                                                                                                                                                                                                                                                                  lines++;
                                                                                                                                                                                                                                                                                } else if (ch === 0x20) {
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 5494..5503

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                              for (; pos < max; pos++) {
                                                                                                                                                                                                                                                                                ch = str.charCodeAt(pos);
                                                                                                                                                                                                                                                                                if (ch === 0x0A) {
                                                                                                                                                                                                                                                                                  lines++;
                                                                                                                                                                                                                                                                                } else if (ch === 0x20) {
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 5467..5476

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                              if (isNextWhiteSpace) {
                                                                                                                                                                                                                                                                                can_open = false;
                                                                                                                                                                                                                                                                              } else if (isNextPunctChar) {
                                                                                                                                                                                                                                                                                if (!(isLastWhiteSpace || isLastPunctChar || lastChar === -1)) {
                                                                                                                                                                                                                                                                                  can_open = false;
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 6463..6469

                                                                                                                                                                                                                                                                            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 (isLastWhiteSpace) {
                                                                                                                                                                                                                                                                                can_close = false;
                                                                                                                                                                                                                                                                              } else if (isLastPunctChar) {
                                                                                                                                                                                                                                                                                if (!(isNextWhiteSpace || isNextPunctChar || nextChar === -1)) {
                                                                                                                                                                                                                                                                                  can_close = false;
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 6455..6461

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                            function isLetter(ch) {
                                                                                                                                                                                                                                                                              /*eslint no-bitwise:0*/
                                                                                                                                                                                                                                                                              var lc = ch | 0x20; // to lower case
                                                                                                                                                                                                                                                                              return (lc >= 0x61/* a */) && (lc <= 0x7a/* z */);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 4939..4943

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                            function isLetter(ch) {
                                                                                                                                                                                                                                                                              /*eslint no-bitwise:0*/
                                                                                                                                                                                                                                                                              var lc = ch | 0x20; // to lower case
                                                                                                                                                                                                                                                                              return (lc >= 0x61/* a */) && (lc <= 0x7a/* z */);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 6692..6696

                                                                                                                                                                                                                                                                            Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

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

                                                                                                                                                                                                                                                                              var title = tokens[idx].title ? (' title="' + escapeHtml(replaceEntities(tokens[idx].title)) + '"') : '';
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 4027..4027

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                              var title = tokens[idx].title ? (' title="' + escapeHtml(replaceEntities(tokens[idx].title)) + '"') : '';
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 4016..4016

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                            rules.code_block = function (tokens, idx /*, options, env */) {
                                                                                                                                                                                                                                                                              return '<pre><code>' + escapeHtml(tokens[idx].content) + '</code></pre>\n';
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3941..3943

                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                            rules.code_inline = function (tokens, idx /*, options, env */) {
                                                                                                                                                                                                                                                                              return '<code>' + escapeHtml(tokens[idx].content) + '</code>';
                                                                                                                                                                                                                                                                            };
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in public/libs/markdownit.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                            public/libs/markdownit.js on lines 3938..3940

                                                                                                                                                                                                                                                                            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