Showing 98 of 141 total issues
File moog-graze.js
has 3263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Created by stephen on 17/05/2016.
*/
// Export the options and the graze methods
Function callGrazeEndpoint
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function callGrazeEndpoint(opts, body)
{
return new Promise(function (resolve, reject)
{
Function setSituationServices
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.setSituationServices = function (sitnId, serviceList, primaryService, callback)
{
debug("Entering setSituationServices");
var opts = this.connectOptions;
var self = this;
Function setSituationProcesses
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.setSituationProcesses = function (sitnId, processList, primaryProcess, callback)
{
debug("Entering setSituationProcesses");
var opts = this.connectOptions;
var self = this;
Function createUser
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.createUser = function (userObj, callback)
{
debug("Entering createUser");
var opts = this.connectOptions;
var self = this;
Function assignAndAcknowledgeSituation
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.assignAndAcknowledgeSituation = function (sitnId, user, callback)
{
debug("Entering assignAndAcknowledgeSituation");
var opts = this.connectOptions;
var self = this;
Function assignSituation
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.assignSituation = function (sitnId, user, callback)
{
debug("Entering assignSituation");
var opts = this.connectOptions;
var self = this;
Function assignAndAcknowledgeAlert
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.assignAndAcknowledgeAlert = function (alertId, user, callback)
{
debug("Entering assignAndAcknowledgeAlert");
var opts = this.connectOptions;
var self = this;
Function assignAlert
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.assignAlert = function (alertId, user, callback)
{
debug("Entering assignAlert");
var opts = this.connectOptions;
var self = this;
Function mergeSituations
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.mergeSituations = function (situations, supersedeOriginal, callback)
{
debug("Entering mergeSituations");
var opts = this.connectOptions;
var self = this;
Function createTeam
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.createTeam = function (teamObj, callback)
{
debug("Entering createTeam");
var opts = this.connectOptions;
var self = this;
Function createMaintenanceWindow
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.createMaintenanceWindow = function (maintObj, callback)
{
debug("Entering createMaintenanceWindow");
var opts = this.connectOptions;
var self = this;
Function updateTeam
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.updateTeam = function (teamObj, callback)
{
debug("Entering updateTeam");
var opts = this.connectOptions;
var self = this;
Function setSituationAcknowledgeState
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.setSituationAcknowledgeState = function (sitnId, acknowledged, callback)
{
debug("Entering setSituationAcknowledgeState");
var opts = this.connectOptions;
var self = this;
Function setSituationDescription
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.setSituationDescription = function (sitnId, description, callback)
{
debug("Entering setSituationDescription");
var opts = this.connectOptions;
var self = this;
Function setAlertSeverity
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.setAlertSeverity = function (alertId, severity, callback)
{
debug("Entering setAlertSeverity");
var opts = this.connectOptions;
var self = this;
Function removeAlertFromSituation
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.removeAlertFromSituation = function (alertId, sitnId, callback)
{
debug("Entering removeAlertFromSituation");
var opts = this.connectOptions;
var self = this;
Function addSigCorrelationInfo
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.addSigCorrelationInfo = function (sitnId, serviceName, resourceId, callback)
{
debug("Entering addSigCorrelationInfo");
var opts = this.connectOptions;
var self = this;
Function setAlertAcknowledgeState
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Graze.prototype.setAlertAcknowledgeState = function (alertId, acknowledged, callback)
{
debug("Entering setAlertAcknowledgeState");
var opts = this.connectOptions;
var self = this;
Function authenticate
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function authenticate(opts)
{
return new Promise(function (resolve, reject)
{