RocketChat/Rocket.Chat.Ops

View on GitHub

Showing 14 of 611 total issues

Function ApiBaseHTTP has 125 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  module.exports.ApiBaseHTTP = (function(superClass) {
    extend(ApiBaseHTTP, superClass);

    function ApiBaseHTTP() {
      this.patch = bind(this.patch, this);
Severity: Major
Found in hubots/hubot-gitsy/src/gitlab/lib/ApiBaseHTTP.js - About 5 hrs to fix

    Function list has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        ProjectIssues.prototype.list = function(projectId, params, fn) {
          if (params == null) {
            params = {};
          }
          if (fn == null) {
    Severity: Minor
    Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectIssues.js - About 1 hr to fix

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

          Users.prototype.all = function(params, fn) {
            var cb, data;
            if (params == null) {
              params = {};
            }
      Severity: Minor
      Found in hubots/hubot-gitsy/src/gitlab/lib/Models/Users.js - About 1 hr to fix

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

            Projects.prototype.all = function(params, fn) {
              var cb, data;
              if (params == null) {
                params = {};
              }
        Severity: Minor
        Found in hubots/hubot-gitsy/src/gitlab/lib/Models/Projects.js - About 1 hr to fix

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

              IssueNotes.prototype.all = function(projectId, issueId, params, fn) {
                var cb, data;
                if (params == null) {
                  params = {};
                }
          Severity: Minor
          Found in hubots/hubot-gitsy/src/gitlab/lib/Models/IssueNotes.js - About 1 hr to fix

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

                Groups.prototype.all = function(params, fn) {
                  var cb, data;
                  if (params == null) {
                    params = {};
                  }
            Severity: Minor
            Found in hubots/hubot-gitsy/src/gitlab/lib/Models/Groups.js - About 1 hr to fix

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

                  ProjectLabels.prototype.all = function(projectId, params, fn) {
                    var cb, data;
                    if (params == null) {
                      params = {};
                    }
              Severity: Minor
              Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectLabels.js - About 1 hr to fix

                Function all has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    Issues.prototype.all = function(params, fn) {
                      if (params == null) {
                        params = {};
                      }
                      if (fn == null) {
                Severity: Minor
                Found in hubots/hubot-gitsy/src/gitlab/lib/Models/Issues.js - About 1 hr to fix

                  Function all has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      ProjectMilestones.prototype.all = function(projectId, fn) {
                        var cb, data, params;
                        if (fn == null) {
                          fn = null;
                        }
                  Severity: Minor
                  Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js - About 1 hr to fix

                    Function addMember has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        Groups.prototype.addMember = function(groupId, userId, accessLevel, fn) {
                          var checkAccessLevel, params;
                          if (fn == null) {
                            fn = null;
                          }
                    Severity: Minor
                    Found in hubots/hubot-gitsy/src/gitlab/lib/Models/Groups.js - About 1 hr to fix

                      Function ApiBase has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        module.exports.ApiBase = (function() {
                          function ApiBase(options) {
                            this.options = options;
                            this.init = bind(this.init, this);
                            this.handleOptions = bind(this.handleOptions, this);
                      Severity: Minor
                      Found in hubots/hubot-gitsy/src/gitlab/lib/ApiBase.js - About 1 hr to fix

                        Function update has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            ProjectMilestones.prototype.update = function(projectId, milestoneId, title, description, due_date, state_event, fn) {
                        Severity: Major
                        Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js - About 50 mins to fix

                          Function add has 6 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              ProjectMergeRequests.prototype.add = function(projectId, sourceBranch, targetBranch, assigneeId, title, fn) {
                          Severity: Minor
                          Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js - About 45 mins to fix

                            Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                ProjectMilestones.prototype.add = function(projectId, title, description, due_date, fn) {
                            Severity: Minor
                            Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js - About 35 mins to fix
                              Severity
                              Category
                              Status
                              Source
                              Language