alepee/node-printer

View on GitHub

Showing 3 of 9 total issues

File printer.js has 324 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var Job = require ('./job');
var spawn = require('child_process').spawn;
var spawnSync = require('child_process').spawnSync;
var _ = require ('underscore');
var utils = require('util');
Severity: Minor
Found in printer.js - About 3 hrs to fix

    Function optionsFactory has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var optionsFactory = function (options) {
    
      var selGeneralOptions = {};
    
    
    
    Severity: Major
    Found in printer.js - About 2 hrs to fix

      Function watch has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Printer.prototype.watch = function() {
        var self = this;
        var args = ['-P', this.name];
      
        var lpq = spawn('lpq', args);
      Severity: Minor
      Found in printer.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language