mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-07 17:53:05 +00:00
Fix RuboCop offense Lint/RedundantStringCoercion, one of the offenses enabled in rubocop-rails-omakase (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22955 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b3d1deeece
commit
095cc967cc
@ -231,13 +231,6 @@ Lint/ParenthesesAsGroupedExpression:
|
|||||||
- 'test/unit/attachment_test.rb'
|
- 'test/unit/attachment_test.rb'
|
||||||
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
||||||
|
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
|
||||||
Lint/RedundantStringCoercion:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
|
|
||||||
- 'test/functional/repositories_filesystem_controller_test.rb'
|
|
||||||
- 'test/functional/repositories_git_controller_test.rb'
|
|
||||||
|
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
# This cop supports safe autocorrection (--autocorrect).
|
||||||
Lint/SendWithMixinArgument:
|
Lint/SendWithMixinArgument:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|||||||
@ -38,7 +38,7 @@ module Redmine
|
|||||||
i = 1
|
i = 1
|
||||||
issue.ancestors.visible.each do |ancestor|
|
issue.ancestors.visible.each do |ancestor|
|
||||||
pdf.set_x(base_x + i)
|
pdf.set_x(base_x + i)
|
||||||
buf = "#{ancestor.tracker} # #{ancestor.id} (#{ancestor.status.to_s}): #{ancestor.subject}"
|
buf = "#{ancestor.tracker} # #{ancestor.id} (#{ancestor.status}): #{ancestor.subject}"
|
||||||
pdf.RDMMultiCell(190 - i, 5, buf)
|
pdf.RDMMultiCell(190 - i, 5, buf)
|
||||||
i += 1 if i < 35
|
i += 1 if i < 35
|
||||||
end
|
end
|
||||||
|
|||||||
@ -126,7 +126,7 @@ class RepositoriesFilesystemControllerTest < Redmine::RepositoryControllerTest
|
|||||||
if @ruby19_non_utf8_pass
|
if @ruby19_non_utf8_pass
|
||||||
puts "TODO: show repository file contents test fails " \
|
puts "TODO: show repository file contents test fails " \
|
||||||
"when Encoding.default_external is not UTF-8. " \
|
"when Encoding.default_external is not UTF-8. " \
|
||||||
"Current value is '#{Encoding.default_external.to_s}'"
|
"Current value is '#{Encoding.default_external}'"
|
||||||
else
|
else
|
||||||
assert_select 'tr#L3 td.line-code', :text => /日本語/
|
assert_select 'tr#L3 td.line-code', :text => /日本語/
|
||||||
end
|
end
|
||||||
|
|||||||
@ -832,6 +832,6 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
|
|||||||
def puts_pass_on_not_utf8
|
def puts_pass_on_not_utf8
|
||||||
puts "TODO: This test fails " +
|
puts "TODO: This test fails " +
|
||||||
"when Encoding.default_external is not UTF-8. " +
|
"when Encoding.default_external is not UTF-8. " +
|
||||||
"Current value is '#{Encoding.default_external.to_s}'"
|
"Current value is '#{Encoding.default_external}'"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user