stevenvelozo/orator-wiki

View on GitHub

Showing 48 of 145 total issues

File epiceditor.js has 1922 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * EpicEditor - An Embeddable JavaScript Markdown Editor (https://github.com/OscarGodson/EpicEditor)
 * Copyright (c) 2011-2012, Oscar Godson. (MIT Licensed)
 */

Severity: Major
Found in Site/Html/js/epiceditor/js/epiceditor.js - About 5 days to fix

    File marked.js has 901 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * marked - a markdown parser
     * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
     * https://github.com/chjj/marked
     */
    Severity: Major
    Found in Site/Html/js/marked.js - About 2 days to fix

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

        EpicEditor.prototype.load = function (callback) {
      
          // Get out early if it's already loaded
          if (this.is('loaded')) { return this; }
      
      
      Severity: Major
      Found in Site/Html/js/epiceditor/js/epiceditor.js - About 2 days to fix

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

        Lexer.prototype.token = function(src, top, bq) {
          var src = src.replace(/^ +$/gm, '')
            , next
            , loose
            , cap
        Severity: Major
        Found in Site/Html/js/marked.js - About 1 day to fix

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

          Lexer.prototype.token = function(src, top) {
            var src = src.replace(/^ +$/gm, '')
              , next
              , loose
              , cap
          Severity: Major
          Found in Site/Html/js/epiceditor/js/epiceditor.js - About 1 day to fix

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

              function EpicEditor(options) {
                // Default settings will be overwritten/extended by options arg
                var self = this
                  , opts = options || {}
                  , _defaultFileSchema
            Severity: Major
            Found in Site/Html/js/epiceditor/js/epiceditor.js - About 5 hrs to fix

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

              Parser.prototype.tok = function() {
                switch (this.token.type) {
                  case 'space': {
                    return '';
                  }
              Severity: Major
              Found in Site/Html/js/epiceditor/js/epiceditor.js - About 5 hrs to fix

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

                InlineLexer.prototype.output = function(src) {
                  var out = ''
                    , link
                    , text
                    , href
                Severity: Major
                Found in Site/Html/js/epiceditor/js/epiceditor.js - About 4 hrs to fix

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

                  InlineLexer.prototype.output = function(src) {
                    var out = ''
                      , link
                      , text
                      , href
                  Severity: Major
                  Found in Site/Html/js/marked.js - About 4 hrs to fix

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

                    Parser.prototype.tok = function() {
                      switch (this.token.type) {
                        case 'space': {
                          return '';
                        }
                    Severity: Major
                    Found in Site/Html/js/marked.js - About 3 hrs to fix

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

                      OratorWiki.getContentEditor = function(pContentHash, fComplete)
                      {
                          var tmpComplete = (typeof(fComplete) === 'function') ? fComplete : function(){};
                          var tmpContentHash = (typeof(pContentHash) === 'string') ? pContentHash : 'TableOfContents';
                      
                      
                      Severity: Major
                      Found in Site/Html/js/orator-wiki.js - About 3 hrs to fix

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

                            self._goFullscreen = function (el) {
                              this._fixScrollbars('auto');
                        
                              if (self.is('fullscreen')) {
                                self._exitFullscreen(el);
                        Severity: Major
                        Found in Site/Html/js/epiceditor/js/epiceditor.js - About 2 hrs to fix

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

                          function marked(src, opt, callback) {
                            if (callback || typeof opt === 'function') {
                              if (!callback) {
                                callback = opt;
                                opt = null;
                          Severity: Major
                          Found in Site/Html/js/marked.js - About 2 hrs to fix

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

                            var oratorWikiListWikiContent = function(pOrator, fCallBack)
                            {
                                var tmpCallback = (typeof(fCallback) === 'function') ? fCallback : function() {};
                            
                                pOrator.webServer.post
                            Severity: Major
                            Found in source/Endpoints/Orator-Wiki-Endpoint-ListWikiContent.js - About 2 hrs to fix

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

                                EpicEditor.prototype._autogrow = function () {
                                  var editorHeight
                                    , newHeight
                                    , minHeight
                                    , maxHeight
                              Severity: Minor
                              Found in Site/Html/js/epiceditor/js/epiceditor.js - About 1 hr to fix

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

                                  function _mergeObjs() {
                                    // copy reference to target object
                                    var target = arguments[0] || {}
                                      , i = 1
                                      , length = arguments.length
                                Severity: Minor
                                Found in Site/Html/js/epiceditor/js/epiceditor.js - About 1 hr to fix

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

                                    EpicEditor.prototype.save = function (_isPreviewDraft, _isAuto) {
                                      var self = this
                                        , storage
                                        , isUpdate = false
                                        , file = self.settings.file.name
                                  Severity: Minor
                                  Found in Site/Html/js/epiceditor/js/epiceditor.js - About 1 hr to fix

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

                                    var OratorWiki = function()
                                    {
                                        function createNew(pOrator)
                                        {
                                            // If a valid Orator object isn't passed in, return a constructor
                                    Severity: Minor
                                    Found in source/Orator-Wiki.js - About 1 hr to fix

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

                                          self._exitFullscreen = function (el) {
                                            this._fixScrollbars();
                                      
                                            _saveStyleState(self.element, 'apply', _elementStates.element);
                                            _saveStyleState(self.iframeElement, 'apply', _elementStates.iframeElement);
                                      Severity: Minor
                                      Found in Site/Html/js/epiceditor/js/epiceditor.js - About 1 hr to fix

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

                                          EpicEditor.prototype.reflow = function (kind, callback) {
                                            var self = this
                                              , widthDiff = _outerWidth(self.element) - self.element.offsetWidth
                                              , heightDiff = _outerHeight(self.element) - self.element.offsetHeight
                                              , elements = [self.iframeElement, self.editorIframe, self.previewerIframe]
                                        Severity: Minor
                                        Found in Site/Html/js/epiceditor/js/epiceditor.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language