From 2613fee2d4dcde52803d21823830a9515ce978f1 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Fri, 16 Sep 2022 01:31:45 +0900 Subject: [PATCH] [Fix #779] Add `mail` to `AllowedMethods` of `Style/SymbolProc` Fixes #779. This PR adds `mail` to `AllowedMethods` of `Style/SymbolProc`. `define_methods` and `respond_to` inherit from RuboCop core. --- ...ange_add_mail_to_allowed_methods_of_style_symbol_proc.md | 1 + config/default.yml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 changelog/change_add_mail_to_allowed_methods_of_style_symbol_proc.md diff --git a/changelog/change_add_mail_to_allowed_methods_of_style_symbol_proc.md b/changelog/change_add_mail_to_allowed_methods_of_style_symbol_proc.md new file mode 100644 index 0000000000..b8f64ff046 --- /dev/null +++ b/changelog/change_add_mail_to_allowed_methods_of_style_symbol_proc.md @@ -0,0 +1 @@ +* [#779](https://github.com/rubocop/rubocop-rails/issues/779): Add `mail` to `AllowedMethods` of `Style/SymbolProc`. ([@koic][]) diff --git a/config/default.yml b/config/default.yml index 9df5c93901..2230d80aa3 100644 --- a/config/default.yml +++ b/config/default.yml @@ -1123,3 +1123,9 @@ Rails/WhereNotWithMultipleConditions: # Accept `redirect_to(...) and return` and similar cases. Style/AndOr: EnforcedStyle: conditionals + +Style/SymbolProc: + AllowedMethods: + - define_method + - mail + - respond_to