Add and apply MultilineMethodCallBraceLayout rule
In order for this rule to work effectively when running `--autocorrect`, we also need to enable the `ClosingParenthesisIndentation` rule.
This commit is contained in:
@@ -148,7 +148,8 @@ class Comment < ApplicationRecord
|
||||
def validate_body_length
|
||||
validator = ActiveModel::Validations::LengthValidator.new(
|
||||
attributes: :body,
|
||||
maximum: Comment.body_max_length)
|
||||
maximum: Comment.body_max_length
|
||||
)
|
||||
validator.validate(self)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user