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:
Go MAEDA
2024-08-12 08:36:05 +00:00
parent b224d878c3
commit 6e21ae7209
15 changed files with 28 additions and 46 deletions

View File

@@ -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)