1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-02 05:39:40 +00:00

cleanup: rubocop: fix Layout/IndentAssignment in app/helpers/application_helper.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18911 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-11-05 14:09:59 +00:00
parent 1dfd16beb0
commit f77dfab621
2 changed files with 2 additions and 3 deletions

View File

@ -121,7 +121,6 @@ Layout/ExtraSpacing:
# Configuration parameters: IndentationWidth.
Layout/IndentAssignment:
Exclude:
- 'app/helpers/application_helper.rb'
- 'test/unit/lib/redmine/helpers/gantt_test.rb'
# Cop supports --auto-correct.

View File

@ -1162,7 +1162,7 @@ module ApplicationHelper
end
LINKS_RE =
%r{
%r{
<a( [^>]+?)?>(?<tag_content>.*?)</a>|
(?<leading>[\s\(,\-\[\>]|^)
(?<esc>!)?
@ -1199,7 +1199,7 @@ module ApplicationHelper
\]|
<|
$)
}x
}x
HEADING_RE = /(<h(\d)( [^>]+)?>(.+?)<\/h(\d)>)/i unless const_defined?(:HEADING_RE)
def parse_sections(text, project, obj, attr, only_path, options)