diff --git a/common_rubocop_rails.yml b/common_rubocop_rails.yml index 4d27787..4156305 100644 --- a/common_rubocop_rails.yml +++ b/common_rubocop_rails.yml @@ -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: diff --git a/radius-spec.gemspec b/radius-spec.gemspec index 545e435..a3f51a8 100644 --- a/radius-spec.gemspec +++ b/radius-spec.gemspec @@ -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