haraka/haraka-plugin-asn

View on GitHub

Showing 2 of 6 total issues

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

// determine the ASN of the connecting IP

// node built-ins
const dns     = require('dns').promises;
const fs      = require('fs/promises');
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) {
      const plugin = this;
      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