haraka/email-message

View on GitHub

Showing 4 of 10 total issues

Consider simplifying this complex logical expression.
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"
Severity: Critical
Found in index.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    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"
    Severity: Critical
    Found in index.js - About 1 hr to fix

      Function _decode_header has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function _decode_header(matched, encoding, lang, cte, data) {
      Severity: Minor
      Found in index.js - About 35 mins to fix

        Function insert_banner has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        function insert_banner(ct, enc, buf, cd, banners) {
        Severity: Minor
        Found in index.js - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language