mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
Fix RuboCop offense Layout/SpaceAfterComma, one of the offenses enabled in rubocop-rails-omakase (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22953 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -94,7 +94,7 @@ module Redmine
|
||||
cmd_args << path_with_proj(path)
|
||||
scm_cmd(*cmd_args) do |io|
|
||||
io.each_line() do |line|
|
||||
fields = line.chop.split('/',-1)
|
||||
fields = line.chop.split('/', -1)
|
||||
logger.debug(">>InspectLine #{fields.inspect}")
|
||||
if fields[0]!="D"
|
||||
time = nil
|
||||
@@ -362,11 +362,11 @@ module Redmine
|
||||
end
|
||||
|
||||
def normalize_cvs_path(path)
|
||||
normalize_path(path.gsub("Attic/",''))
|
||||
normalize_path(path.gsub("Attic/", ''))
|
||||
end
|
||||
|
||||
def normalize_path(path)
|
||||
path.sub(/^(\/)*(.*)/,'\2').sub(/(.*)(,v)+/,'\1')
|
||||
path.sub(/^(\/)*(.*)/, '\2').sub(/(.*)(,v)+/, '\1')
|
||||
end
|
||||
|
||||
def path_with_proj(path)
|
||||
|
||||
Reference in New Issue
Block a user