Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,49 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2026-01-27 12:23:34 UTC using RuboCop version 1.84.0.
# on 2026-02-06 15:45:31 UTC using RuboCop version 1.84.1.
# 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: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowInHeredoc.
Layout/TrailingWhitespace:
Exclude:
- 'app/services/apply_sparta_discount_service.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantCopDisableDirective:
Exclude:
- 'app/jobs/update_sparta_state_job.rb'
- 'app/services/spl/sparta_loyalty_service.rb'

# Offense count: 3
# Offense count: 5
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 18

# Offense count: 2
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 8
Max: 10

# Offense count: 13
# Offense count: 15
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 14

# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 156
Max: 118

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 10

# Offense count: 2
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
Expand Down Expand Up @@ -92,7 +104,13 @@ Style/IfUnlessModifier:
- 'app/services/assign_sparta_card_number_service.rb'
- 'app/services/spl/validate_card_service.rb'

# Offense count: 5
# Offense count: 2
# Configuration parameters: Max.
Style/SafeNavigationChainLength:
Exclude:
- 'app/services/apply_sparta_discount_service.rb'

# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
# URISchemes: http, https
Expand Down
9 changes: 6 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@ gem 'rake', '~> 13.0'
group :development, :test do
gem 'brakeman'
gem 'byebug'
gem 'railties'
gem 'rubocop', '~> 1.79', '>= 1.79.2'
gem 'rubocop-rails', '~> 2.33', '>= 2.33.3'
gem 'rubocop-rails-omakase'
gem 'sqlite3', '>= 2.0'
end

group :test do
spree_opts = '< 5.3'
gem 'abbrev'
gem 'factory_bot_rails'
gem 'ffaker'
gem 'observer'
gem 'rails-controller-testing'
gem 'spree', '> 5.0'
gem 'spree_admin', '> 5.0'
gem 'spree_storefront', '> 5.0'
gem 'spree', spree_opts
gem 'spree_admin', spree_opts
gem 'spree_emails', spree_opts
gem 'spree_storefront', spree_opts
gem 'webmock'
end

Expand Down
Loading