haraka/haraka-tld

View on GitHub

Showing 2 of 4 total issues

Function isRemoteNewer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.isRemoteNewer = function (dest, opts) {
  if (!dest) dest = pslFile

  return new Promise((resolve, reject) => {
    this.getFileStats(dest)
Severity: Minor
Found in lib/update.js - About 1 hr to fix

    Function split_hostname has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.split_hostname = function (host, level) {
      if (!level || (level && !(level >= 1 && level <= 3))) {
        level = 2
      }
    
    
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language