haraka/haraka-plugin-known-senders

View on GitHub

Showing 3 of 3 total issues

Function is_dkim_authenticated has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.is_dkim_authenticated = async function (next, connection) {
const plugin = this
if (connection.relaying) return next()
 
let rcpt_ods = []
Severity: Minor
Found in index.js - About 1 hr to fix

    Function is_dkim_authenticated has a Cognitive Complexity of 18 (exceeds 10 allowed). Consider refactoring.
    Open

    exports.is_dkim_authenticated = async function (next, connection) {
    const plugin = this
    if (connection.relaying) return next()
     
    let rcpt_ods = []
    Severity: Minor
    Found in index.js - About 1 hr to fix

    Function update_sender has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.update_sender = async function (next, connection, params) {
    const plugin = this
    // queue_ok arguments: next, connection, msg
    // ok 1390590369 qp 634 (F82E2DD5-9238-41DC-BC95-9C3A02716AD2.1)
     
     
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language