Enable ParenthesesAsGroupedExpression rule
This commit is contained in:
parent
704d21f517
commit
8348e1a9b5
|
@ -877,7 +877,7 @@ Lint/ParenthesesAsGroupedExpression:
|
||||||
Checks for method calls with a space before the opening
|
Checks for method calls with a space before the opening
|
||||||
parenthesis.
|
parenthesis.
|
||||||
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
Lint/RequireParentheses:
|
Lint/RequireParentheses:
|
||||||
Description: >-
|
Description: >-
|
||||||
|
|
|
@ -143,7 +143,7 @@ module API
|
||||||
|
|
||||||
class ProjectEntity < Grape::Entity
|
class ProjectEntity < Grape::Entity
|
||||||
expose :id, :iid
|
expose :id, :iid
|
||||||
expose (:project_id) { |entity| entity.project.id }
|
expose(:project_id) { |entity| entity.project.id }
|
||||||
expose :title, :description
|
expose :title, :description
|
||||||
expose :state, :created_at, :updated_at
|
expose :state, :created_at, :updated_at
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue