# Cop supports --auto-correct.
Layout/ClosingHeredocIndentation:
Exclude:
- - 'test/integration/lib/redmine/hook_test.rb'
- 'test/unit/lib/redmine/unified_diff_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
# SupportedStyles: squiggly, active_support, powerpack, unindent
Layout/IndentHeredoc:
Exclude:
- - 'test/integration/lib/redmine/hook_test.rb'
- 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb'
- 'test/unit/lib/redmine/unified_diff_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
Redmine::Hook.clear_listeners
class ContentForInsideHook < Redmine::Hook::ViewListener
- render_on :view_welcome_index_left, :inline => <<-VIEW
-<% content_for :header_tags do %>
- <%= javascript_include_tag 'test_plugin.js', :plugin => 'test_plugin' %>
- <%= stylesheet_link_tag 'test_plugin.css', :plugin => 'test_plugin' %>
-<% end %>
-
-<p>ContentForInsideHook content</p>
-VIEW
+ render_on :view_welcome_index_left, :inline => <<~VIEW
+ <% content_for :header_tags do %>
+ <%= javascript_include_tag 'test_plugin.js', :plugin => 'test_plugin' %>
+ <%= stylesheet_link_tag 'test_plugin.css', :plugin => 'test_plugin' %>
+ <% end %>
+
+ <p>ContentForInsideHook content</p>
+ VIEW
end
class SingleRenderOn < Redmine::Hook::ViewListener