haraka/haraka-plugin-dkim

View on GitHub

Showing 56 of 60 total issues

Avoid too many return statements within this function.
Open

        return this.result(null, verified ? 'pass' : 'fail')
Severity: Major
Found in lib/dkim.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return this.result('unknown query method', 'invalid')
    Severity: Major
    Found in lib/dkim.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                    return this.result('inappropriate hash algorithm', 'invalid')
      Severity: Major
      Found in lib/dkim.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                  return this.result('inapplicable key', 'invalid')
        Severity: Major
        Found in lib/dkim.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                          return this.result(
                            'i/d selector domain mismatch (t=s)',
                            'invalid',
                          )
          Severity: Major
          Found in lib/dkim.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    if (!this.dns_fields.p) return this.result('key revoked', 'invalid')
            Severity: Major
            Found in lib/dkim.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                            return this.result('inapplicable key', 'invalid')
              Severity: Major
              Found in lib/dkim.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return this.result(`signature expired`, 'invalid')
                Severity: Major
                Found in lib/dkim.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      if (!this.fields.bh) return this.result('body hash missing', 'invalid')
                  Severity: Major
                  Found in lib/dkim.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return this.result('from field not signed', 'invalid')
                    Severity: Major
                    Found in lib/dkim.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                return this.result('verification error', 'invalid')
                      Severity: Major
                      Found in lib/dkim.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                          if (!addrs || !addrs.length) return domain
                        Severity: Major
                        Found in index.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                    return this.result('invalid algorithm', 'invalid')
                          Severity: Major
                          Found in lib/dkim.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return fromHost
                            Severity: Major
                            Found in index.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return this.result('inappropriate key type', 'invalid')
                              Severity: Major
                              Found in lib/dkim.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    if (!this.fields.b) return this.result('signature missing', 'invalid')
                                Severity: Major
                                Found in lib/dkim.js - About 30 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language