Moogsoft/moog-graze

View on GitHub

Showing 98 of 141 total issues

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

function authenticate(opts)
{

  return new Promise(function (resolve, reject)
  {
Severity: Major
Found in lib/moog-graze.js - About 2 hrs to fix

    Function addThreadEntry has 57 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Graze.prototype.addThreadEntry = function (sitnId, threadName, entry, callback)
    {
      debug("Entering addThreadEntry");
      var opts = this.connectOptions;
      var self = this;
    Severity: Major
    Found in lib/moog-graze.js - About 2 hrs to fix

      Function closeSituation has 56 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Graze.prototype.closeSituation = function (sitnId, resolution, callback)
      {
        debug("Entering closeSituation");
        var opts = this.connectOptions;
        var self = this;
      Severity: Major
      Found in lib/moog-graze.js - About 2 hrs to fix

        Function createThread has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Graze.prototype.createThread = function (sitnId, threadName, callback)
        {
          debug("Entering createThread");
          var opts = this.connectOptions;
          var self = this;
        Severity: Major
        Found in lib/moog-graze.js - About 2 hrs to fix

          Function addSituationCustomInfo has 56 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          Graze.prototype.addSituationCustomInfo = function (sitnId, customInfo, callback)
          {
            debug("Entering addSituationCustomInfo");
            var opts = this.connectOptions;
            var self = this;
          Severity: Major
          Found in lib/moog-graze.js - About 2 hrs to fix

            Function addProcess has 56 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Graze.prototype.addProcess = function (name, description, callback)
            {
              debug("Entering addProcess");
              var opts = this.connectOptions;
              var self = this;
            Severity: Major
            Found in lib/moog-graze.js - About 2 hrs to fix

              Function resolveSituation has 56 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function addService has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                Graze.prototype.addService = function (name, description, callback)
                {
                  debug("Entering addService");
                  var opts = this.connectOptions;
                  var self = this;
                Severity: Major
                Found in lib/moog-graze.js - About 2 hrs to fix

                  Function addAlertCustomInfo has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  Graze.prototype.addAlertCustomInfo = function (alertId, customInfo, callback)
                  {
                    debug("Entering addAlertCustomInfo");
                    var opts = this.connectOptions;
                    var self = this;
                  Severity: Major
                  Found in lib/moog-graze.js - About 2 hrs to fix

                    Function addAlertToSituation has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    Graze.prototype.addAlertToSituation = function (alertId, sitnId, callback)
                    {
                      debug("Entering addAlertToSituation");
                      var opts = this.connectOptions;
                      var self = this;
                    Severity: Major
                    Found in lib/moog-graze.js - About 2 hrs to fix

                      Function deleteMaintenanceWindows has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      Graze.prototype.deleteMaintenanceWindows = function (filter, limit, callback)
                      {
                        debug("Entering deleteMaintenanceWindows");
                        var opts = this.connectOptions;
                        var self = this;
                      Severity: Major
                      Found in lib/moog-graze.js - About 2 hrs to fix

                        Function deleteMaintenanceWindow has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        Graze.prototype.deleteMaintenanceWindow = function (window, callback)
                        {
                          debug("Entering deleteMaintenanceWindow");
                          var opts = this.connectOptions;
                          var self = this;
                        Severity: Major
                        Found in lib/moog-graze.js - About 2 hrs to fix

                          Function closeAlert has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Function findMaintenanceWindows has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            Graze.prototype.findMaintenanceWindows = function (filter, limit, callback)
                            {
                              debug("Entering findMaintenanceWindows");
                              var opts = this.connectOptions;
                              var self = this;
                            Severity: Major
                            Found in lib/moog-graze.js - About 2 hrs to fix

                              Function createSituation has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              Graze.prototype.createSituation = function (description, callback)
                              {
                                debug("Entering createSituation");
                                var opts = this.connectOptions;
                                var self = this;
                              Severity: Major
                              Found in lib/moog-graze.js - About 2 hrs to fix

                                Function deassignSituation has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

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

                                  Function deassignAlert has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Function getUserRoles has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

                                      Function getUserTeams has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

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

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

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