diff --git a/.rubocop.yml b/.rubocop.yml index 635cdb8b..bc599c40 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +inherit_from: .rubocop_todo.yml + require: - rubocop-rails - rubocop-rspec @@ -12,6 +14,9 @@ Style/StringLiterals: Style/Documentation: Enabled: false +Style/HashSyntax: + Enabled: false + # Do not complain about blocks that are too long. Metrics/BlockLength: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 00000000..9fc63691 --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,41 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2024-05-26 16:27:21 UTC using RuboCop version 1.64.0. +# The point is for the user to remove these configuration records +# one by one as the offenses are removed from the code base. +# Note that changes in the inspected code, or installation of new +# versions of RuboCop, may require this file to be generated again. + +# Offense count: 14 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, BlockForwardingName. +# SupportedStyles: anonymous, explicit +Naming/BlockForwarding: + Exclude: + - 'app/form_builders/formatted_form_builder.rb' + - 'app/helpers/application_helper.rb' + +# Offense count: 14 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames. +# RedundantRestArgumentNames: args, arguments +# RedundantKeywordRestArgumentNames: kwargs, options, opts +# RedundantBlockArgumentNames: blk, block, proc +Style/ArgumentsForwarding: + Exclude: + - 'app/form_builders/formatted_form_builder.rb' + - 'app/helpers/application_helper.rb' + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: AllowedReceivers. +# AllowedReceivers: Thread.current +Style/HashEachMethods: + Exclude: + - 'app/models/stock.rb' + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +Style/SuperArguments: + Exclude: + - 'app/form_builders/formatted_form_builder.rb' diff --git a/Gemfile b/Gemfile index 3e44f8d6..b6dfdb42 100644 --- a/Gemfile +++ b/Gemfile @@ -72,9 +72,9 @@ gem "httparty", "~> 0.20.0" gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw] # Sentry -gem "stackprof" gem "sentry-rails" gem "sentry-ruby" +gem "stackprof" # Production dependencies group :production do diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index b3f605aa..96191d5f 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -37,7 +37,7 @@ end RSpec.configure do |config| # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.fixture_path = "#{Rails.root}/spec/fixtures" # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false