RackHD/on-tftp

View on GitHub

Showing 4 of 6 total issues

Function TftpServerFactory has 114 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function TftpServerFactory(
    Logger,
    configuration,
    eventsProtocol,
    lookupService,
Severity: Major
Found in lib/server.js - About 4 hrs to fix

    Function prepareGrunt has 93 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function prepareGrunt(grunt) {
        var allFiles = [
            'package.json',
            'Gruntfile.js',
            'lib/**/*.js',
    Severity: Major
    Found in Gruntfile.js - About 3 hrs to fix

      Function handleRequest has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          Tftp.prototype.handleRequest = function(req, res){
              req._startAt = process.hrtime();
      
              req.on("error", function() {
                  logger.warning("Tftp error", {
      Severity: Minor
      Found in lib/server.js - About 1 hr to fix

        Function TftpServerFactory has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            Logger,
            configuration,
            eventsProtocol,
            lookupService,
            FileLoader,
        Severity: Major
        Found in lib/server.js - About 50 mins to fix
          Severity
          Category
          Status
          Source
          Language