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:
Javi Martín
2023-07-01 18:18:22 +02:00
parent 5b6de96241
commit 1a098dfcab
36 changed files with 74 additions and 65 deletions

View File

@@ -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