haraka/haraka-plugin-asn

View on GitHub

Showing 2 of 6 total issues

File index.js has 281 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// determine the ASN of the connecting IP

const dns = require('node:dns').promises
const fs = require('node:fs/promises')
const path = require('node:path')
Severity: Minor
Found in index.js - About 2 hrs to fix

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

    exports.lookup_via_dns = function (next, connection) {
      if (connection.remote.is_private) return next()
    
      const promises = []
    
    
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language