Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-05-18 15:57:05 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-05-18 15:57:05 +0300
commitb8ff4b26b5f38e2fcdca487c5b7fc7d19af9ac61 (patch)
tree730354553c9eab6fd82a1644c3f01f019e86100e /config/routes
parent513c853532b1289f15e82061d06e528f1557d4b6 (diff)
Disable rubocop hash check for blocks
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/project.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 77b65e2d162..95ca3281a3f 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -198,6 +198,8 @@ constraints(ProjectUrlConstrainer.new) do
end
end
+ # It's a block, not a hash, disabling style check for hash
+ # rubocop:disable Style/AlignHash
get '/builds/:id/:action', as: 'action_legacy_build',
to: redirect { |params, req|
args = params.values_at(:namespace_id, :project_id, :id)
@@ -214,12 +216,16 @@ constraints(ProjectUrlConstrainer.new) do
end
}
+ # It's a block, not a hash, disabling style check for hash
+ # rubocop:disable Style/AlignHash
get '/builds/:id', as: 'legacy_build',
to: redirect { |params, req|
Gitlab::Routing.url_helpers.namespace_project_job_path(
params[:namespace_id], params[:project_id], params[:id])
}
+ # It's a block, not a hash, disabling style check for hash
+ # rubocop:disable Style/AlignHash
get '/builds', as: 'legacy_builds',
to: redirect { |params, req|
Gitlab::Routing.url_helpers.namespace_project_jobs_path(