Showing 98 of 141 total issues
Function getSituationAlertIds
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getSituationAlertIds = function (sitnId, uniqueOnly, callback)
{
debug("Entering getSituationAlertIds");
var opts = this.connectOptions;
var self = this;
Function req
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var req = https.request(opts, (res) =>
{
res.setEncoding('utf8');
var resData = {};
var returnString = "";
Function getSituationHosts
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getSituationHosts = function (sitnId, uniqueOnly, callback)
{
debug("Entering getSituationHosts");
var opts = this.connectOptions;
var self = this;
Function getSituationDetails
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getSituationDetails = function (sitnId, callback)
{
debug("Entering getSituationDetails");
var opts = this.connectOptions;
var self = this;
Function getTeamSituationIds
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getTeamSituationIds = function (teamName, callback)
{
debug("Entering getTeamSituationIds");
var opts = this.connectOptions;
var self = this;
Function getMaintenanceWindows
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getMaintenanceWindows = function (start, limit, callback)
{
debug("Entering getMaintenanceWindows");
var opts = this.connectOptions;
var self = this;
Function getSituationServices
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getSituationServices = function (sitnId, callback)
{
debug("Entering getSituationServices");
var opts = this.connectOptions;
var self = this;
Function getUserInfo
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getUserInfo = function (user, callback)
{
debug("Entering getUserInfo");
var opts = this.connectOptions;
var self = this;
Function getSituationProcesses
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getSituationProcesses = function (sitnId, callback)
{
debug("Entering getSituationProcesses");
var opts = this.connectOptions;
var self = this;
Function getAlertIds
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getAlertIds = function (query, limit, callback)
{
debug("Entering getAlertIds");
var opts = this.connectOptions;
var self = this;
Function getSituationIds
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getSituationIds = function (query, limit, callback)
{
debug("Entering getSituationIds");
var opts = this.connectOptions;
var self = this;
Function getSituationDescription
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getSituationDescription = function (sitnId, callback)
{
debug("Entering getSituationDescription");
var opts = this.connectOptions;
var self = this;
Function getSystemSummary
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getSystemSummary = function (callback)
{
debug("Entering getSystemSummary");
var opts = this.connectOptions;
var self = this;
Function getAlertDetails
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getAlertDetails = function (alertId, callback)
{
debug("Entering getAlertDetails");
var opts = this.connectOptions;
var self = this;
Function getActiveSituationIds
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getActiveSituationIds = function (callback)
{
debug("Entering getActiveSituationIds");
var opts = this.connectOptions;
var self = this;
Function getSystemStatus
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.getSystemStatus = function (callback)
{
debug("Entering getSystemStatus");
var opts = this.connectOptions;
var self = this;
Function _createUser
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _createUser = function (userObj)
{
debug('Entering _createUser');
debug('_createUser authToken: ' + opts.authToken);
return new Promise(function (resolve, reject)
Function _setSituationProcesses
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _setSituationProcesses = function (sitnId, processList, primaryProcess)
{
debug('Entering _setSituationProcesses sitn_id:' + sitnId +
' process_list:' + processList + ' [optional primary_process:' + primaryProcess + ']');
debug('_setSituationProcesses authToken: ' + opts.authToken);
Function _setSituationServices
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _setSituationServices = function (sitnId, serviceList, primaryService)
{
debug('Entering _setSituationServices sitn_id:' + sitnId +
' process_list:' + serviceList + ' [optional primary_process:' + primaryService + ']');
debug('_setSituationServices authToken: ' + opts.authToken);
Function _assignAlert
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _assignAlert = function (alertId, user)
{
debug('Entering _assignAlert');
debug('_assignAlert authToken: ' + opts.authToken);
return new Promise(function (resolve, reject)