stevenvelozo/orator-wiki

View on GitHub

Showing 48 of 145 total issues

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

    function shortcutHandler(e) {
      if (e.keyCode == self.settings.shortcut.modifier) { isMod = true } // check for modifier press(default is alt key), save to var
      if (e.keyCode == 17) { isCtrl = true } // check for ctrl/cmnd press, in order to catch ctrl/cmnd + s

      // Check for alt+p and make sure were not in fullscreen - default shortcut to switch to preview
Severity: Minor
Found in Site/Html/js/epiceditor/js/epiceditor.js - About 1 hr to fix

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

    var oratorWikiPostWikiContent = function(pOrator, fCallBack)
    {
        var tmpCallback = (typeof(fCallback) === 'function') ? fCallBack : function() {};
    
        pOrator.webServer.post
    Severity: Minor
    Found in source/Endpoints/Orator-Wiki-Endpoint-PostWikiContent.js - About 1 hr to fix

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

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

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

          EpicEditor.prototype.getFiles = function (name, excludeContent) {
            var file
              , data = this._getFileStore(name);
            
            if (name) {
        Severity: Minor
        Found in Site/Html/js/epiceditor/js/epiceditor.js - About 1 hr to fix

          Avoid deeply nested control flow statements.
          Open

                    if (!loose) loose = next;
          Severity: Major
          Found in Site/Html/js/epiceditor/js/epiceditor.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                      if (!loose) loose = next;
            Severity: Major
            Found in Site/Html/js/marked.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          if (target === copy) {
                            continue;
                          }
              Severity: Major
              Found in Site/Html/js/epiceditor/js/epiceditor.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                            if (deep && copy && typeof copy === "object" && !copy.nodeType) {
                              target[name] = _mergeObjs(deep,
                                // Never move original objects, clone them
                                src || (copy.length != null ? [] : {})
                                , copy);
                Severity: Major
                Found in Site/Html/js/epiceditor/js/epiceditor.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                            if (bull !== b && !(bull.length > 1 && b.length > 1)) {
                              src = cap.slice(i + 1).join('\n') + src;
                              i = l - 1;
                            }
                  Severity: Major
                  Found in Site/Html/js/marked.js - About 45 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return !this.token.pre && !this.options.pedantic
                            ? this.inline.output(this.token.text)
                            : this.token.text;
                    Severity: Major
                    Found in Site/Html/js/epiceditor/js/epiceditor.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return this.renderer.list(body, ordered);
                      Severity: Major
                      Found in Site/Html/js/marked.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return this.renderer.listitem(body);
                        Severity: Major
                        Found in Site/Html/js/marked.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return '<p>'
                                  + this.parseText()
                                  + '</p>\n';
                          Severity: Major
                          Found in Site/Html/js/epiceditor/js/epiceditor.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return '<blockquote>\n'
                                    + body
                                    + '</blockquote>\n';
                            Severity: Major
                            Found in Site/Html/js/epiceditor/js/epiceditor.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return this.renderer.listitem(body);
                              Severity: Major
                              Found in Site/Html/js/marked.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return this.renderer.blockquote(body);
                                Severity: Major
                                Found in Site/Html/js/marked.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return '<'
                                          + type
                                          + '>\n'
                                          + body
                                          + '</'
                                  Severity: Major
                                  Found in Site/Html/js/epiceditor/js/epiceditor.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return '<li>'
                                            + body
                                            + '</li>\n';
                                    Severity: Major
                                    Found in Site/Html/js/epiceditor/js/epiceditor.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return '<p>An error occured:</p><pre>'
                                              + escape(e.message + '', true)
                                              + '</pre>';
                                      Severity: Major
                                      Found in Site/Html/js/marked.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return '<li>'
                                                + body
                                                + '</li>\n';
                                        Severity: Major
                                        Found in Site/Html/js/epiceditor/js/epiceditor.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language