]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/EndAlignment in app/helpers/repositories_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Oct 2019 17:02:12 +0000 (17:02 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Oct 2019 17:02:12 +0000 (17:02 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18730 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/helpers/repositories_helper.rb

index dd459a9e2256bfcda1686b044d5399af94bf77b1..aa2c49c1bf223df89b976ad305a1c7220f303977 100644 (file)
@@ -166,7 +166,6 @@ Layout/EmptyLinesAroundModuleBody:
 # SupportedStylesAlignWith: keyword, variable, start_of_line
 Layout/EndAlignment:
   Exclude:
-    - 'app/helpers/repositories_helper.rb'
     - 'app/helpers/versions_helper.rb'
     - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
 
index c9b749b981fdb7c3c8808aeccd4e0ef1ef5b93b2..c5cb85e19c7ef5c6c7f5120f01484df11f5e76e3 100644 (file)
@@ -139,7 +139,7 @@ module RepositoriesHelper
   def scm_select_tag(repository)
     scm_options = [["--- #{l(:actionview_instancetag_blank_option)} ---", '']]
     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)
         scm_options << ["Repository::#{scm}".constantize.scm_name, scm]
       end