gitlabhq/gitlabhq

View on GitHub

Showing 1,676 of 2,385 total issues

Class Project has 279 methods (exceeds 20 allowed). Consider refactoring.
Open

class Project < ApplicationRecord
  include Gitlab::ConfigHelper
  include Gitlab::ShellAdapter
  include Gitlab::VisibilityLevel
  include AccessRequestable
Severity: Major
Found in app/models/project.rb - About 5 days to fix

    File project.rb has 1835 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require 'carrierwave/orm/activerecord'
    
    class Project < ApplicationRecord
      include Gitlab::ConfigHelper
      include Gitlab::ShellAdapter
    Severity: Major
    Found in app/models/project.rb - About 5 days to fix

      File entities.rb has 1575 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      module API
        module Entities
          class Membership < Grape::Entity
            expose :source_id
            expose :source_name do |member|
      Severity: Major
      Found in lib/api/entities.rb - About 4 days to fix

        Class User has 201 methods (exceeds 20 allowed). Consider refactoring.
        Open

        class User < ApplicationRecord
          extend Gitlab::ConfigHelper
        
          include Gitlab::ConfigHelper
          include Gitlab::SQL::Pattern
        Severity: Major
        Found in app/models/user.rb - About 4 days to fix

          File notes.js has 1314 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* eslint-disable no-restricted-properties, camelcase,
          no-unused-expressions, default-case,
          consistent-return, no-alert, no-param-reassign, no-else-return,
          no-shadow, no-useless-escape,
          class-methods-use-this */
          Severity: Major
          Found in app/assets/javascripts/notes.js - About 3 days to fix

            Class MergeRequest has 165 methods (exceeds 20 allowed). Consider refactoring.
            Open

            class MergeRequest < ApplicationRecord
              include AtomicInternalId
              include IidRoutes
              include Issuable
              include Noteable
            Severity: Major
            Found in app/models/merge_request.rb - About 3 days to fix

              File user.rb has 1238 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              require 'carrierwave/orm/activerecord'
              
              class User < ApplicationRecord
                extend Gitlab::ConfigHelper
              
              
              Severity: Major
              Found in app/models/user.rb - About 3 days to fix

                Method services has 559 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      def self.services
                        {
                          'asana' => [
                            {
                              required: true,
                Severity: Major
                Found in lib/api/helpers/services_helpers.rb - About 2 days to fix

                  File merge_request.rb has 1094 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  class MergeRequest < ApplicationRecord
                    include AtomicInternalId
                    include IidRoutes
                    include Issuable
                    include Noteable
                  Severity: Major
                  Found in app/models/merge_request.rb - About 2 days to fix

                    Class Repository has 140 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    class Repository
                      REF_MERGE_REQUEST = 'merge-requests'
                      REF_KEEP_AROUND = 'keep-around'
                      REF_ENVIRONMENTS = 'environments'
                      REF_PIPELINES = 'pipelines'
                    Severity: Major
                    Found in app/models/repository.rb - About 2 days to fix

                      Class Repository has 125 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                          class Repository
                            include Gitlab::Git::RepositoryMirroring
                            include Gitlab::Git::WrapsGitalyErrors
                            include Gitlab::EncodingHelper
                            include Gitlab::Utils::StrongMemoize
                      Severity: Major
                      Found in lib/gitlab/git/repository.rb - About 2 days to fix

                        Class Build has 111 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                          class Build < Ci::Processable
                            include Ci::Metadatable
                            include Ci::Contextable
                            include Ci::PipelineDelegator
                            include TokenAuthenticatable
                        Severity: Major
                        Found in app/models/ci/build.rb - About 2 days to fix

                          File repository.rb has 849 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          require 'securerandom'
                          
                          class Repository
                            REF_MERGE_REQUEST = 'merge-requests'
                            REF_KEEP_AROUND = 'keep-around'
                          Severity: Major
                          Found in app/models/repository.rb - About 2 days to fix

                            Function constructor has 379 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              constructor(els, options = {}) {
                                const _this = this;
                            
                                let $els = $(els);
                            
                            
                            Severity: Major
                            Found in app/assets/javascripts/labels_select.js - About 1 day to fix

                              File repository.rb has 769 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              require 'tempfile'
                              require 'forwardable'
                              require "rubygems/package"
                              
                              module Gitlab
                              Severity: Major
                              Found in lib/gitlab/git/repository.rb - About 1 day to fix

                                Class Pipeline has 94 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                  class Pipeline < ApplicationRecord
                                    extend Gitlab::Ci::Model
                                    include HasStatus
                                    include Importable
                                    include AfterCommitQueue
                                Severity: Major
                                Found in app/models/ci/pipeline.rb - About 1 day to fix

                                  File services_helpers.rb has 756 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  module API
                                    module Helpers
                                      # Helpers module for API::Services
                                      #
                                      # The data structures inside this model are returned using class methods,
                                  Severity: Major
                                  Found in lib/api/helpers/services_helpers.rb - About 1 day to fix

                                    File gl_dropdown.js has 750 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /* eslint-disable func-names, no-underscore-dangle, one-var, no-cond-assign, no-return-assign, no-else-return, camelcase, no-lonely-if, guard-for-in, no-restricted-syntax, consistent-return, no-param-reassign, no-loop-func */
                                    
                                    import $ from 'jquery';
                                    import _ from 'underscore';
                                    import fuzzaldrinPlus from 'fuzzaldrin-plus';
                                    Severity: Major
                                    Found in app/assets/javascripts/gl_dropdown.js - About 1 day to fix

                                      File build.rb has 727 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      module Ci
                                        class Build < Ci::Processable
                                          include Ci::Metadatable
                                          include Ci::Contextable
                                          include Ci::PipelineDelegator
                                      Severity: Major
                                      Found in app/models/ci/build.rb - About 1 day to fix

                                        File users.rb has 696 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        module API
                                          class Users < Grape::API
                                            include PaginationParams
                                            include APIGuard
                                            include Helpers::CustomAttributes
                                        Severity: Major
                                        Found in lib/api/users.rb - About 1 day to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language