msimerson/Haraka

View on GitHub

Showing 655 of 655 total issues

Avoid too many return statements within this function.
Open

            return next();
Severity: Major
Found in plugins/helo.checks.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        if (!xclient.name) return next(NEXT_HOOK, 'lookup_rdns');
    Severity: Major
    Found in plugins/xclient.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return next(OK);
      Severity: Major
      Found in plugins/delay_deny.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return true;
        Severity: Major
        Found in plugins/greylist.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return next(DENY, 'HELO host does not match rDNS');
          Severity: Major
          Found in plugins/helo.checks.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return chsit(null, 'rDNS is a generic record');
            Severity: Major
            Found in plugins/greylist.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                              return auth_and_mail_phase();  // no outbound TLS config
              Severity: Major
              Found in outbound/hmail.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return this.respond(501, `Invalid MAIL FROM address`);
                Severity: Major
                Found in connection.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return require(path.join(path.dirname(this.plugin_path), module));
                  Severity: Major
                  Found in plugins.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                if (!smtp_properties.tls) return auth_and_mail_phase(); // TLS not advertised by remote
                    Severity: Major
                    Found in outbound/hmail.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  if (net_utils.ip_in_list(obtls.cfg.no_tls_hosts, host)) return auth_and_mail_phase();
                      Severity: Major
                      Found in outbound/hmail.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                        return self.temp_fail(`Upstream error: ${code} ${(extc) ? `${extc} ` : ''}${reason}`);
                        Severity: Major
                        Found in outbound/hmail.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                              return self.bounce(reason, { mx });
                          Severity: Major
                          Found in outbound/hmail.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return 0;
                            Severity: Major
                            Found in plugins.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      if (isNaN(num)) return error(i, 'invalid number or symbol');
                              Severity: Major
                              Found in outbound/config.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        if (num < 5) return error(i, 'delay time too small, should be >=5 seconds')
                                Severity: Major
                                Found in outbound/config.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return stream_line_reader(contents, transaction, err => {
                                              if (err) {
                                                  return next(constants.denysoft, `Error from stream line reader: ${err}`);
                                              }
                                              exports.send_trans_email(transaction, next);
                                  Severity: Major
                                  Found in outbound/index.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                                return finish_processing_mail(false);
                                    Severity: Major
                                    Found in outbound/hmail.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                          return;
                                      Severity: Major
                                      Found in smtp_client.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                                    return finish_processing_mail(false);
                                        Severity: Major
                                        Found in outbound/hmail.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language