Skip to content
Open
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
5 changes: 5 additions & 0 deletions common_rubocop_rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ Rails/CreateTableWithTimestamps:
Rails/DefaultScope:
Enabled: true

# This cop checks for usage of Rails.env.foo? and prefers it to be replaced with Feature Flags. Since our team
# uses Rails.env.foo rarely in configuration files, this isn't a problem we need to have a cop in place for.
Rails/Env:
Enabled: false

# We were originally going to disable this, but after much discussion agreed that enabling
# this cop with AllowReads: true should be relatively painless.
Rails/EnvironmentVariableAccess:
Expand Down
2 changes: 1 addition & 1 deletion radius-spec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ Gem::Specification.new do |spec|

spec.add_dependency "rspec", "~> 3.7"
spec.add_dependency "rubocop", ">= 1.25", "< 1.82"
spec.add_dependency "rubocop-rails", ">= 2.13", "< 2.34"
spec.add_dependency "rubocop-rails", ">= 2.13", "< 2.35"
spec.add_dependency "rubocop-rspec_rails", "~> 2.31"
end