Showing 2 of 2 total issues
Function eachActiveDnsList
has a Cognitive Complexity of 17 (exceeds 10 allowed). Consider refactoring. Open
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}`)
- Read upRead up
Function load_config
has 35 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
exports.load_config = function () { this.cfg = this.config.get( 'dns-list.ini', { booleans: [