Class: RuboCop::Cop::Layout::RescueEnsureAlignment
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Layout::RescueEnsureAlignment
- Defined in:
- lib/rubocop/monkey_patches/rescue_ensure_alignment.rb
Instance Method Summary collapse
Instance Method Details
#begin_end_alignment_style ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rubocop/monkey_patches/rescue_ensure_alignment.rb', line 7 def begin_end_alignment_style # FIXME: Workaround for pending status for `Layout/BeginEndAlignment` cop # When RuboCop 1.0 is released, please replace it with the following condition. # # config.for_cop('Layout/BeginEndAlignment')['Enabled'] && # config.for_cop('Layout/BeginEndAlignment')['EnforcedStyleAlignWith'] if config.for_all_cops["NewCops"] == "enable" || config.for_cop("Layout/BeginEndAlignment")["Enabled"] && config.for_cop("Layout/BeginEndAlignment")["Enabled"] != "pending" config.for_cop("Layout/BeginEndAlignment")["EnforcedStyleAlignWith"] end end |