Skip to content

Commit

Permalink
[Fix #11800] Mark Style/InvertibleUnlessCondition as unsafe
Browse files Browse the repository at this point in the history
Fixes #11800.

This PR marks `Style/InvertibleUnlessCondition` as unsafe.
`@safety` is already documented:
https://github.com/rubocop/rubocop/blob/v1.50.1/lib/rubocop/cop/style/invertible_unless_condition.rb#L20-L23
  • Loading branch information
koic authored and bbatsov committed Apr 14, 2023
1 parent 8dfe1b4 commit edcae93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [#11800](https://github.com/rubocop/rubocop/issues/11800): Mark `Style/InvertibleUnlessCondition` as unsafe. ([@koic][])
2 changes: 2 additions & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4067,7 +4067,9 @@ Style/InverseMethods:
Style/InvertibleUnlessCondition:
Description: 'Favor `if` with inverted condition over `unless`.'
Enabled: false
Safe: false
VersionAdded: '1.44'
VersionChanged: '<<next>>'
# `InverseMethods` are methods that can be inverted in a `unless` condition.
# The relationship of inverse methods needs to be defined in both directions.
# Keys and values both need to be defined as symbols.
Expand Down

0 comments on commit edcae93

Please sign in to comment.