Showing 106 of 4,066 total issues

File proposals_spec.rb has 1385 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'rails_helper'

feature 'Proposals' do

  scenario 'Disabled with a feature flag' do
Severity: Major
Found in spec/features/proposals_spec.rb - About 3 days to fix

    File investments_spec.rb has 1317 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require 'rails_helper'
    require 'sessions_helper'
    
    feature 'Budget Investments' do
    
    
    Severity: Major
    Found in spec/features/budgets/investments_spec.rb - About 3 days to fix

      File budget_investments_spec.rb has 1070 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      require 'rails_helper'
      
      feature 'Admin budget investments' do
      
        let(:budget) { create(:budget) }
      Severity: Major
      Found in spec/features/admin/budget_investments_spec.rb - About 2 days to fix

        File debates_spec.rb has 874 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        require 'rails_helper'
        
        feature 'Debates' do
        
          before do
        Severity: Major
        Found in spec/features/debates_spec.rb - About 2 days to fix

          File investment_spec.rb has 844 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          require 'rails_helper'
          
          describe Budget::Investment do
            let(:investment) { build(:budget_investment) }
          
          
          Severity: Major
          Found in spec/models/budget/investment_spec.rb - About 2 days to fix

            File topics_spec.rb has 838 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            require 'rails_helper'
            include ActionView::Helpers::DateHelper
            
            feature 'Commenting topics from proposals' do
              let(:user)     { create :user }
            Severity: Major
            Found in spec/features/comments/topics_spec.rb - About 2 days to fix

              File proposal_spec.rb has 757 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              require 'rails_helper'
              
              describe Proposal do
                let(:proposal) { build(:proposal) }
              
              
              Severity: Major
              Found in spec/models/proposal_spec.rb - About 1 day to fix

                File debate_spec.rb has 590 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                require 'rails_helper'
                
                describe Debate do
                  let(:debate) { build(:debate) }
                
                
                Severity: Major
                Found in spec/models/debate_spec.rb - About 1 day to fix

                  File legislation_annotations_spec.rb has 543 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  require 'rails_helper'
                  include ActionView::Helpers::DateHelper
                  
                  feature 'Commenting legislation questions' do
                    let(:user) { create :user }
                  Severity: Major
                  Found in spec/features/comments/legislation_annotations_spec.rb - About 1 day to fix

                    File user_spec.rb has 541 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    require 'rails_helper'
                    
                    describe User do
                    
                      describe "#debate_votes" do
                    Severity: Major
                    Found in spec/models/user_spec.rb - About 1 day to fix

                      File graphql_spec.rb has 517 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      require 'rails_helper'
                      
                      api_types  = GraphQL::ApiTypesCreator.create(API_TYPE_DEFINITIONS)
                      query_type = GraphQL::QueryTypeCreator.create(api_types)
                      ConsulSchema = GraphQL::Schema.define do
                      Severity: Major
                      Found in spec/lib/graphql_spec.rb - About 1 day to fix

                        File ballots_spec.rb has 486 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        require 'rails_helper'
                        
                        feature 'Ballots' do
                        
                          let!(:user)       { create(:user, :level_two) }
                        Severity: Minor
                        Found in spec/features/budgets/ballots_spec.rb - About 7 hrs to fix

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

                          class User < ActiveRecord::Base
                          
                            include Verification
                          
                            devise :database_authenticatable, :registerable, :confirmable, :recoverable, :rememberable,
                          Severity: Minor
                          Found in app/models/user.rb - About 6 hrs to fix

                            Class Investment has 47 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                              class Investment < ActiveRecord::Base
                                SORTING_OPTIONS = %w(id title supports).freeze
                            
                                include Rails.application.routes.url_helpers
                                include Measurable
                            Severity: Minor
                            Found in app/models/budget/investment.rb - About 6 hrs to fix

                              File emails_spec.rb has 419 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              require 'rails_helper'
                              
                              feature 'Emails' do
                              
                                background do
                              Severity: Minor
                              Found in spec/features/emails_spec.rb - About 6 hrs to fix

                                File budget_investments_spec.rb has 409 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                require 'rails_helper'
                                
                                feature 'Valuation budget investments' do
                                
                                  let(:budget) { create(:budget, :valuating) }
                                Severity: Minor
                                Found in spec/features/valuation/budget_investments_spec.rb - About 5 hrs to fix

                                  File legislation_questions_spec.rb has 406 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  require 'rails_helper'
                                  include ActionView::Helpers::DateHelper
                                  
                                  feature 'Commenting legislation questions' do
                                  
                                  
                                  Severity: Minor
                                  Found in spec/features/comments/legislation_questions_spec.rb - About 5 hrs to fix

                                    File users_spec.rb has 395 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    require 'rails_helper'
                                    
                                    feature 'Users' do
                                    
                                      before do
                                    Severity: Minor
                                    Found in spec/features/users_spec.rb - About 5 hrs to fix

                                      File budget_investments_spec.rb has 386 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      require 'rails_helper'
                                      include ActionView::Helpers::DateHelper
                                      
                                      feature 'Commenting Budget::Investments' do
                                      
                                      
                                      Severity: Minor
                                      Found in spec/features/comments/budget_investments_spec.rb - About 5 hrs to fix

                                        File debates_spec.rb has 385 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        require 'rails_helper'
                                        include ActionView::Helpers::DateHelper
                                        
                                        feature 'Commenting debates' do
                                          let(:user)   { create :user }
                                        Severity: Minor
                                        Found in spec/features/comments/debates_spec.rb - About 5 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language