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:
authorDmitriy Zaporozhets <dzaporozhets@gitlab.com>2015-03-03 08:58:14 +0300
committerDmitriy Zaporozhets <dzaporozhets@gitlab.com>2015-03-03 08:58:14 +0300
commit2f4656b5c7e2a9b351237432e76a7b928a1684b1 (patch)
tree4ab511af1a4e58775443176c7a161c06fcb1cab7
parentd874c821b4562457442b62e204d6b8796ceb560e (diff)
parent8348e1a9b57b042e97f14d3b4f7682806902efa1 (diff)
Merge branch 'strict-rubocop-rules' into 'master'
Enable ParenthesesAsGroupedExpression rule See merge request !1617
-rw-r--r--.rubocop.yml2
-rw-r--r--lib/api/entities.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index a4b51008194..53ca2ca2191 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -877,7 +877,7 @@ Lint/ParenthesesAsGroupedExpression:
Checks for method calls with a space before the opening
parenthesis.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
- Enabled: false
+ Enabled: true
Lint/RequireParentheses:
Description: >-
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index af76f3c439e..489be210784 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -143,7 +143,7 @@ module API
class ProjectEntity < Grape::Entity
expose :id, :iid
- expose (:project_id) { |entity| entity.project.id }
+ expose(:project_id) { |entity| entity.project.id }
expose :title, :description
expose :state, :created_at, :updated_at
end