ajkochanowicz/Kickstrap

View on GitHub

Showing 14 of 74 total issues

File markdown.js has 1073 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Released under MIT license
// Copyright (c) 2009-2010 Dominic Baggott
// Copyright (c) 2009-2010 Ash Berlin
// Copyright (c) 2011 Christoph Dorn <christoph@christophdorn.com> (http://www.christophdorn.com)

Severity: Major
Found in lib-docs/coffee/markdown.js - About 2 days to fix

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

        lists: (function( ) {
          // Use a closure to hide a few variables.
          var any_list = "[*+-]|\\d+\\.",
              bullet_list = /[*+-]/,
              number_list = /\d+\./,
    Severity: Major
    Found in lib-docs/coffee/markdown.js - About 6 hrs to fix

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

      function convert_tree_to_html( tree, references, options ) {
        var i;
        options = options || {};
      
        // shallow clone
      Severity: Major
      Found in lib-docs/coffee/markdown.js - About 4 hrs to fix

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

            "[": function link( text ) {
        
              var orig = String(text);
              // Inline content is possible inside `link text`
              var res = Markdown.DialectHelpers.inline_until_char.call( this, text.substr(1), "]" );
        Severity: Minor
        Found in lib-docs/coffee/markdown.js - About 2 hrs to fix

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

          Markdown.dialects.Maruku.block.table = function table (block, next) {
          
              var _split_on_unescaped = function(s, ch) {
                  ch = ch || '\\s';
                  if (ch.match(/^[\\|\[\]{}?*.+^$]$/)) { ch = '\\' + ch; }
          Severity: Minor
          Found in lib-docs/coffee/markdown.js - About 1 hr to fix

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

                blockquote: function blockquote( block, next ) {
                  if ( !block.match( /^>/m ) )
                    return undefined;
            
                  var jsonml = [];
            Severity: Minor
            Found in lib-docs/coffee/markdown.js - About 1 hr to fix

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

              function strong_em( tag, md ) {
              
                var state_slot = tag + "_state",
                    other_slot = tag == "strong" ? "em_state" : "strong_state";
              
              
              Severity: Minor
              Found in lib-docs/coffee/markdown.js - About 1 hr to fix

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

                Markdown.dialects.Maruku.block.block_meta = function block_meta( block, next ) {
                  // check if the last line of the block is an meta hash
                  var m = block.match( /(^|\n) {0,3}\{:\s*((?:\\\}|[^\}])*)\s*\}$/ );
                  if ( !m ) return undefined;
                
                
                Severity: Minor
                Found in lib-docs/coffee/markdown.js - About 1 hr to fix

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

                  function split_meta_hash( meta_string ) {
                    var meta = meta_string.split( "" ),
                        parts = [ "" ],
                        in_quotes = false;
                  
                  
                  Severity: Minor
                  Found in lib-docs/coffee/markdown.js - About 1 hr to fix

                    Avoid deeply nested control flow statements.
                    Open

                                  if ( --open_parens == 0) {
                                    consumed -= url.length - len;
                                    url = url.substring(0, len);
                                  }
                    Severity: Major
                    Found in lib-docs/coffee/markdown.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                  while ($stepsUp > -1) {
                                    $targetNode = $targetNode.parentNode;
                                    $stepsUp--;
                                  }
                      Severity: Major
                      Found in core/js-alc/docs.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                        for ( i = 0; i < stack.length; i++ ) {
                                          if ( stack[ i ].indent != m[1] ) continue;
                                          list = stack[ i ].list;
                                          stack.splice( i+1, stack.length - (i+1) );
                                          found = true;
                        Severity: Major
                        Found in lib-docs/coffee/markdown.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                          if (!found) {
                                            //print("not found. l:", uneval(l));
                                            wanted_depth++;
                                            if ( wanted_depth <= stack.length ) {
                                              stack.splice(wanted_depth, stack.length - wanted_depth);
                          Severity: Major
                          Found in lib-docs/coffee/markdown.js - About 45 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return [ 1, "[" ];
                            Severity: Major
                            Found in lib-docs/coffee/markdown.js - About 30 mins to fix
                              Severity
                              Category
                              Status
                              Source
                              Language