Showing 4 of 10 total issues
Consider simplifying this complex logical expression. Open
Open
if (
(buf[i + 2] === 98 || buf[i + 2] === 66) && // "b" or "B"
(buf[i + 3] === 111 || buf[i + 3] === 79) && // "o" or "O"
(buf[i + 4] === 100 || buf[i + 4] === 68) && // "d" or "D"
(buf[i + 5] === 121 || buf[i + 5] === 89) && // "y" or "Y"
Consider simplifying this complex logical expression. Open
Open
if (
(buf[i + 2] === 104 || buf[i + 2] === 72) && // "h" or "H"
(buf[i + 3] === 116 || buf[i + 3] === 84) && // "t" or "T"
(buf[i + 4] === 109 || buf[i + 4] === 77) && // "m" or "M"
(buf[i + 5] === 108 || buf[i + 5] === 76) && // "l" or "L"
Function _decode_header
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _decode_header(matched, encoding, lang, cte, data) {
Function insert_banner
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function insert_banner(ct, enc, buf, cd, banners) {