Showing 3 of 9 total issues
File printer.js
has 324 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var Job = require ('./job');
var spawn = require('child_process').spawn;
var spawnSync = require('child_process').spawnSync;
var _ = require ('underscore');
var utils = require('util');
Function optionsFactory
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var optionsFactory = function (options) {
var selGeneralOptions = {};
Function watch
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Printer.prototype.watch = function() {
var self = this;
var args = ['-P', this.name];
var lpq = spawn('lpq', args);