Moogsoft/moog-graze

View on GitHub

Showing 98 of 141 total issues

Function getSituationAlertIds has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Graze.prototype.getSituationAlertIds = function (sitnId, uniqueOnly, callback)
{
  debug("Entering getSituationAlertIds");
  var opts = this.connectOptions;
  var self = this;
Severity: Minor
Found in lib/moog-graze.js - About 1 hr to fix

    Function req has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var req = https.request(opts, (res) =>
        {
          res.setEncoding('utf8');
          var resData = {};
          var returnString = "";
    Severity: Minor
    Found in lib/moog-graze.js - About 1 hr to fix

      Function getSituationHosts has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Graze.prototype.getSituationHosts = function (sitnId, uniqueOnly, callback)
      {
        debug("Entering getSituationHosts");
        var opts = this.connectOptions;
        var self = this;
      Severity: Minor
      Found in lib/moog-graze.js - About 1 hr to fix

        Function getSituationDetails has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Graze.prototype.getSituationDetails = function (sitnId, callback)
        {
          debug("Entering getSituationDetails");
          var opts = this.connectOptions;
          var self = this;
        Severity: Minor
        Found in lib/moog-graze.js - About 1 hr to fix

          Function getTeamSituationIds has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          Graze.prototype.getTeamSituationIds = function (teamName, callback)
          {
            debug("Entering getTeamSituationIds");
            var opts = this.connectOptions;
            var self = this;
          Severity: Minor
          Found in lib/moog-graze.js - About 1 hr to fix

            Function getMaintenanceWindows has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Graze.prototype.getMaintenanceWindows = function (start, limit, callback)
            {
              debug("Entering getMaintenanceWindows");
              var opts = this.connectOptions;
              var self = this;
            Severity: Minor
            Found in lib/moog-graze.js - About 1 hr to fix

              Function getSituationServices has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Graze.prototype.getSituationServices = function (sitnId, callback)
              {
                debug("Entering getSituationServices");
                var opts = this.connectOptions;
                var self = this;
              Severity: Minor
              Found in lib/moog-graze.js - About 1 hr to fix

                Function getUserInfo has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                Graze.prototype.getUserInfo = function (user, callback)
                {
                  debug("Entering getUserInfo");
                  var opts = this.connectOptions;
                  var self = this;
                Severity: Minor
                Found in lib/moog-graze.js - About 1 hr to fix

                  Function getSituationProcesses has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  Graze.prototype.getSituationProcesses = function (sitnId, callback)
                  {
                    debug("Entering getSituationProcesses");
                    var opts = this.connectOptions;
                    var self = this;
                  Severity: Minor
                  Found in lib/moog-graze.js - About 1 hr to fix

                    Function getAlertIds has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    Graze.prototype.getAlertIds = function (query, limit, callback)
                    {
                      debug("Entering getAlertIds");
                      var opts = this.connectOptions;
                      var self = this;
                    Severity: Minor
                    Found in lib/moog-graze.js - About 1 hr to fix

                      Function getSituationIds has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      Graze.prototype.getSituationIds = function (query, limit, callback)
                      {
                        debug("Entering getSituationIds");
                        var opts = this.connectOptions;
                        var self = this;
                      Severity: Minor
                      Found in lib/moog-graze.js - About 1 hr to fix

                        Function getSituationDescription has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        Graze.prototype.getSituationDescription = function (sitnId, callback)
                        {
                          debug("Entering getSituationDescription");
                          var opts = this.connectOptions;
                          var self = this;
                        Severity: Minor
                        Found in lib/moog-graze.js - About 1 hr to fix

                          Function getSystemSummary has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          Graze.prototype.getSystemSummary = function (callback)
                          {
                            debug("Entering getSystemSummary");
                            var opts = this.connectOptions;
                            var self = this;
                          Severity: Minor
                          Found in lib/moog-graze.js - About 1 hr to fix

                            Function getAlertDetails has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            Graze.prototype.getAlertDetails = function (alertId, callback)
                            {
                              debug("Entering getAlertDetails");
                              var opts = this.connectOptions;
                              var self = this;
                            Severity: Minor
                            Found in lib/moog-graze.js - About 1 hr to fix

                              Function getActiveSituationIds has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              Graze.prototype.getActiveSituationIds = function (callback)
                              {
                                debug("Entering getActiveSituationIds");
                                var opts = this.connectOptions;
                                var self = this;
                              Severity: Minor
                              Found in lib/moog-graze.js - About 1 hr to fix

                                Function getSystemStatus has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                Graze.prototype.getSystemStatus = function (callback)
                                {
                                  debug("Entering getSystemStatus");
                                  var opts = this.connectOptions;
                                  var self = this;
                                Severity: Minor
                                Found in lib/moog-graze.js - About 1 hr to fix

                                  Function _createUser has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    var _createUser = function (userObj)
                                    {
                                      debug('Entering _createUser');
                                      debug('_createUser authToken: ' + opts.authToken);
                                      return new Promise(function (resolve, reject)
                                  Severity: Minor
                                  Found in lib/moog-graze.js - About 1 hr to fix

                                    Function _setSituationProcesses has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    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);
                                    Severity: Minor
                                    Found in lib/moog-graze.js - About 1 hr to fix

                                      Function _setSituationServices has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                      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);
                                      Severity: Minor
                                      Found in lib/moog-graze.js - About 1 hr to fix

                                        Function _assignAlert has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          var _assignAlert = function (alertId, user)
                                          {
                                            debug('Entering _assignAlert');
                                            debug('_assignAlert authToken: ' + opts.authToken);
                                            return new Promise(function (resolve, reject)
                                        Severity: Minor
                                        Found in lib/moog-graze.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language