Showing 48 of 145 total issues
Function shortcutHandler
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Function oratorWikiPostWikiContent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var oratorWikiPostWikiContent = function(pOrator, fCallBack)
{
var tmpCallback = (typeof(fCallback) === 'function') ? fCallBack : function() {};
pOrator.webServer.post
Function createNew
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createNew(pOrator)
{
// If a valid Orator object isn't passed in, return a constructor
if ((typeof(pOrator) !== 'object') || (!pOrator.hasOwnProperty('webServer')))
{
Function getFiles
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
EpicEditor.prototype.getFiles = function (name, excludeContent) {
var file
, data = this._getFileStore(name);
if (name) {
Avoid deeply nested control flow statements. Open
Open
if (!loose) loose = next;
Avoid deeply nested control flow statements. Open
Open
if (!loose) loose = next;
Avoid deeply nested control flow statements. Open
Open
if (target === copy) {
continue;
}
Avoid deeply nested control flow statements. Open
Open
if (deep && copy && typeof copy === "object" && !copy.nodeType) {
target[name] = _mergeObjs(deep,
// Never move original objects, clone them
src || (copy.length != null ? [] : {})
, copy);
Avoid deeply nested control flow statements. Open
Open
if (bull !== b && !(bull.length > 1 && b.length > 1)) {
src = cap.slice(i + 1).join('\n') + src;
i = l - 1;
}
Avoid too many return
statements within this function. Open
Open
return !this.token.pre && !this.options.pedantic
? this.inline.output(this.token.text)
: this.token.text;
Avoid too many return
statements within this function. Open
Open
return this.renderer.list(body, ordered);
Avoid too many return
statements within this function. Open
Open
return this.renderer.listitem(body);
Avoid too many return
statements within this function. Open
Open
return '<p>'
+ this.parseText()
+ '</p>\n';
Avoid too many return
statements within this function. Open
Open
return '<blockquote>\n'
+ body
+ '</blockquote>\n';
Avoid too many return
statements within this function. Open
Open
return this.renderer.listitem(body);
Avoid too many return
statements within this function. Open
Open
return this.renderer.blockquote(body);
Avoid too many return
statements within this function. Open
Open
return '<'
+ type
+ '>\n'
+ body
+ '</'
Avoid too many return
statements within this function. Open
Open
return '<li>'
+ body
+ '</li>\n';
Avoid too many return
statements within this function. Open
Open
return '<p>An error occured:</p><pre>'
+ escape(e.message + '', true)
+ '</pre>';
Avoid too many return
statements within this function. Open
Open
return '<li>'
+ body
+ '</li>\n';