Skip to content

Commit

Permalink
Enable Lint/ItWithoutArgumentsInBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Dec 11, 2023
1 parent 58c1510 commit e4452a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -189,6 +190,11 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
Lint/InterpolationCheck:
Enabled: false

<% if rubocop_version >= v1_59 %>
Lint/ItWithoutArgumentsInBlock:
Enabled: true
<% end %>

Lint/LambdaWithoutLiteralBlock:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e4452a4

Please sign in to comment.