Showing 31 of 47 total issues
Avoid deeply nested control flow statements. Open
Open
if (!peek) {
this.record_tag(tag_check);
this.tag_type = 'STYLE';
}
Avoid deeply nested control flow statements. Open
Open
if (multi_parser.output[lastCheckedOutput].match(/{{#if/)) {
foundIfOnCurrentLine = true;
break;
}
Consider simplifying this complex logical expression. Open
Open
if (content.length && content[content.length - 1] !== '=' && input_char !== '>' && space) {
//no space after = or before >
var wrapped = this.space_or_wrap(content);
var indentAttrs = wrapped && input_char !== '/' && !is_wrap_attributes_force;
space = false;
Function printer
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.printer = function(js_source, indent_character, indent_size, wrap_line_length, brace_style) { //handles input/output and some other printing functions
Function Section
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EpubMaker.Section = function(epubType, id, content, includeInToc, includeInLandmarks) {
Avoid too many return
statements within this function. Open
Open
return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));
Avoid too many return
statements within this function. Open
Open
return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));
Avoid too many return
statements within this function. Open
Open
return token;
Avoid too many return
statements within this function. Open
Open
return [token, tag_name_type];
Avoid too many return
statements within this function. Open
Open
if (code < 97) return code === 95;
Avoid too many return
statements within this function. Open
Open
if (code < 123) return true;