Skip to content
Snippets Groups Projects

Enable (and disable) more rubocops

Merged Douwe Maan requested to merge dm-meer-blauw-op-straat into master
1 unresolved thread
33 files
+ 75
77
Compare changes
  • Side-by-side
  • Inline
Files
33
@@ -37,8 +37,8 @@ def gitlab_dot_com_url?(url)
@@ -37,8 +37,8 @@ def gitlab_dot_com_url?(url)
end
end
def self_url?(url, namespace, project)
def self_url?(url, namespace, project)
return true if url == [ Gitlab.config.gitlab.url, '/', namespace, '/',
return true if url == [Gitlab.config.gitlab.url, '/', namespace, '/',
project, '.git' ].join('')
project, '.git'].join('')
url == gitlab_shell.url_to_repo([namespace, '/', project].join(''))
url == gitlab_shell.url_to_repo([namespace, '/', project].join(''))
end
end
@@ -48,8 +48,8 @@ def relative_self_url?(url)
@@ -48,8 +48,8 @@ def relative_self_url?(url)
end
end
def standard_links(host, namespace, project, commit)
def standard_links(host, namespace, project, commit)
base = [ 'https://', host, '/', namespace, '/', project ].join('')
base = ['https://', host, '/', namespace, '/', project].join('')
[base, [ base, '/tree/', commit ].join('')]
[base, [base, '/tree/', commit].join('')]
end
end
def relative_self_links(url, commit)
def relative_self_links(url, commit)
Loading