forked from rubocop/rubocop
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
respond_to
from default value of AllowedMethods
for `Style…
…/SymbolProc` The commit below adds `respond_to` to the config, which looks like a Rails method. rubocop@54ff86e Ruby has method called `respond_to?`, not `respond_to`. So `respond_to` is a Rails API and `respond_to?` doesn't take a block argument. RuboCop core does not depend on Rails, so move the `respond_to` config from RuboCop core to RuboCop Rails. I noticed this by rubocop/rubocop-rails#779. This removed setting was added in RuboCop Rails 2.17. Rails application developers can get this change in the upgrade. rubocop/rubocop-rails#806
- Loading branch information
Showing
3 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
changelog/change_remove_respond_to_from_allowed_methods_of_style_symbol_proc.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#11236](https://github.com/rubocop/rubocop/pull/11236): Remove `respond_to` from default value of `AllowedMethods` for `Style/SymbolProc`. ([@koic][]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters