From 33ba911a65e7f2e8560986be6e693fd060a3652e Mon Sep 17 00:00:00 2001 From: Sam Bostock Date: Mon, 11 Dec 2023 15:12:18 -0500 Subject: [PATCH] Enable `Lint/ItWithoutArgumentsInBlock` --- rubocop.yml | 6 ++++++ test/fixtures/full_config.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rubocop.yml b/rubocop.yml index a5558b34..e02dfd30 100644 --- a/rubocop.yml +++ b/rubocop.yml @@ -2,6 +2,7 @@ rubocop_version = Gem.loaded_specs.fetch("rubocop").version v1_57 = Gem::Version.new("1.57") v1_58 = Gem::Version.new("1.58") + v1_59 = Gem::Version.new("1.59") %> inherit_mode: @@ -189,6 +190,11 @@ Lint/IncompatibleIoSelectWithFiberScheduler: Lint/InterpolationCheck: Enabled: false +<% if rubocop_version >= v1_59 %> +Lint/ItWithoutArgumentsInBlock: + Enabled: true +<% end %> + Lint/LambdaWithoutLiteralBlock: Enabled: false diff --git a/test/fixtures/full_config.yml b/test/fixtures/full_config.yml index b92e9612..b94dd9bf 100644 --- a/test/fixtures/full_config.yml +++ b/test/fixtures/full_config.yml @@ -1425,7 +1425,7 @@ Lint/InterpolationCheck: Lint/ItWithoutArgumentsInBlock: Description: Checks uses of `it` calls without arguments in block. Reference: https://bugs.ruby-lang.org/issues/18980 - Enabled: pending + Enabled: true VersionAdded: '1.59' Lint/LambdaWithoutLiteralBlock: Description: Checks uses of lambda without a literal block.