diff --git a/Gemfile b/Gemfile
index 48d36e79710..7f1e2bf8492 100644
--- a/Gemfile
+++ b/Gemfile
@@ -83,7 +83,7 @@ group :test do
gem 'rspec-its'
gem 'rspec-rails', '~> 7.1.1'
gem 'rspec-wait'
- gem 'rubocop', '~> 1.75.2'
+ gem 'rubocop', '~> 1.75.3'
gem 'rubocop-capybara'
gem 'rubocop-factory_bot'
gem 'rubocop-rails', '~> 2.31'
diff --git a/Gemfile.lock b/Gemfile.lock
index 1800a0ea273..c6f6eeb5477 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -469,7 +469,7 @@ GEM
activesupport (>= 3.0.0)
mustache (~> 1.0, >= 0.99.4)
rspec (~> 3.0)
- rubocop (1.75.2)
+ rubocop (1.75.3)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
@@ -671,7 +671,7 @@ DEPENDENCIES
rspec-rails (~> 7.1.1)
rspec-wait
rspec_api_documentation (>= 6.1.0)
- rubocop (~> 1.75.2)
+ rubocop (~> 1.75.3)
rubocop-capybara
rubocop-factory_bot
rubocop-rails (~> 2.31)
diff --git a/app/presenters/v3/droplet_presenter.rb b/app/presenters/v3/droplet_presenter.rb
index 6bc69ae830a..177eee8d2dd 100644
--- a/app/presenters/v3/droplet_presenter.rb
+++ b/app/presenters/v3/droplet_presenter.rb
@@ -70,7 +70,7 @@ def droplet_buildpack_info
name_to_lookup = buildpack.buildpack_url
name_to_print = CloudController::UrlSecretObfuscator.obfuscate(buildpack.buildpack_url)
end
- detect_output = droplet.buildpack_receipt_buildpack == (name_to_lookup) ? droplet.buildpack_receipt_detect_output : nil
+ detect_output = droplet.buildpack_receipt_buildpack == name_to_lookup ? droplet.buildpack_receipt_detect_output : nil
{
name: name_to_print,
detect_output: detect_output,
diff --git a/lib/cloud_controller/diego/app_recipe_builder.rb b/lib/cloud_controller/diego/app_recipe_builder.rb
index 0b8a3dc7046..9cbf197fc65 100644
--- a/lib/cloud_controller/diego/app_recipe_builder.rb
+++ b/lib/cloud_controller/diego/app_recipe_builder.rb
@@ -166,8 +166,8 @@ def generate_routes(info)
{
CF_ROUTES_KEY => Oj.dump(http_routes),
- TCP_ROUTES_KEY => Oj.dump((info['tcp_routes'] || [])),
- INTERNAL_ROUTES_KEY => Oj.dump((info['internal_routes'] || []))
+ TCP_ROUTES_KEY => Oj.dump(info['tcp_routes'] || []),
+ INTERNAL_ROUTES_KEY => Oj.dump(info['internal_routes'] || [])
}
end
diff --git a/spec/logcache/container_metric_batcher_spec.rb b/spec/logcache/container_metric_batcher_spec.rb
index 3b50ffc0bac..6a40a6e9390 100644
--- a/spec/logcache/container_metric_batcher_spec.rb
+++ b/spec/logcache/container_metric_batcher_spec.rb
@@ -512,7 +512,7 @@ def generate_batch(size, offset: 0, last_timestamp: TimeUtils.to_nanoseconds(Tim
Timecop.freeze do
subject
- start_time = TimeUtils.to_nanoseconds((Time.now - lookback_window))
+ start_time = TimeUtils.to_nanoseconds(Time.now - lookback_window)
end_time = TimeUtils.to_nanoseconds(Time.now)
expect(wrapped_logcache_client).to have_received(:container_metrics).
with(hash_including(start_time:, end_time:))
@@ -545,7 +545,7 @@ def generate_batch(size, offset: 0, last_timestamp: TimeUtils.to_nanoseconds(Tim
Timecop.freeze(call_time) do
expect(subject).to have(2001).items
- start_time = TimeUtils.to_nanoseconds((call_time - lookback_window))
+ start_time = TimeUtils.to_nanoseconds(call_time - lookback_window)
expect(wrapped_logcache_client).to have_received(:container_metrics).
with(hash_including(start_time: start_time, end_time: call_time_ns))
diff --git a/spec/support/legacy_api_dsl.rb b/spec/support/legacy_api_dsl.rb
index 54ab3deb48c..0f10247e791 100644
--- a/spec/support/legacy_api_dsl.rb
+++ b/spec/support/legacy_api_dsl.rb
@@ -213,7 +213,7 @@ def standard_list_parameters(controller, outer_model: nil, exclude_parameters: [
query_parameter_description += 'Format queries as <filter><op><value>
'
query_parameter_description += ' Valid ops: : >= <= < > IN
'
query_parameter_description += " Valid filters: #{query_parameters.to_a.join(', ')}"
- if outer_model && query_parameters.include?((outer_model.to_s + '_guid'))
+ if outer_model && query_parameters.include?(outer_model.to_s + '_guid')
query_parameter_description += "
(Note that filtering on #{outer_model}_guid will return an empty list " \
'if you specify anything other than the guid included in the path.)'
end