1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

code cleanup: rubocop: fix Layout/EndAlignment in app/helpers/repositories_helper.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18730 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-17 17:02:12 +00:00
parent dbb9abcccd
commit 460ac6adda
2 changed files with 1 additions and 2 deletions

View File

@ -166,7 +166,6 @@ Layout/EmptyLinesAroundModuleBody:
# SupportedStylesAlignWith: keyword, variable, start_of_line # SupportedStylesAlignWith: keyword, variable, start_of_line
Layout/EndAlignment: Layout/EndAlignment:
Exclude: Exclude:
- 'app/helpers/repositories_helper.rb'
- 'app/helpers/versions_helper.rb' - 'app/helpers/versions_helper.rb'
- 'lib/redmine/export/pdf/issues_pdf_helper.rb' - 'lib/redmine/export/pdf/issues_pdf_helper.rb'

View File

@ -139,7 +139,7 @@ module RepositoriesHelper
def scm_select_tag(repository) def scm_select_tag(repository)
scm_options = [["--- #{l(:actionview_instancetag_blank_option)} ---", '']] scm_options = [["--- #{l(:actionview_instancetag_blank_option)} ---", '']]
Redmine::Scm::Base.all.each do |scm| Redmine::Scm::Base.all.each do |scm|
if Setting.enabled_scm.include?(scm) || if Setting.enabled_scm.include?(scm) ||
(repository && repository.class.name.demodulize == scm) (repository && repository.class.name.demodulize == scm)
scm_options << ["Repository::#{scm}".constantize.scm_name, scm] scm_options << ["Repository::#{scm}".constantize.scm_name, scm]
end end