haraka/haraka-plugin-dns-list

View on GitHub

Showing 2 of 2 total issues

Function eachActiveDnsList has a Cognitive Complexity of 17 (exceeds 10 allowed). Consider refactoring.
Open

exports.eachActiveDnsList = async function (connection, zone, nextOnce) {
const type = this.getListType(zone)
 
const ips = await this.lookup(connection.remote.ip, zone)
// console.log(`eachActiveDnsList ip ${connection.remote.ip} zone ${zone} type ${type} ips ${ips}`)
Severity: Minor
Found in index.js - About 1 hr to fix

Function load_config has 35 lines of code (exceeds 30 allowed). Consider refactoring.
Open

exports.load_config = function () {
this.cfg = this.config.get(
'dns-list.ini',
{
booleans: [
Severity: Minor
Found in index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language