Add and apply Rails/ResponseParsedBody rubocop rule

This rule was introduced in rubocop-rails 2.18.0.

Since using `response.parsed_body` is shorter than using
`JSON.parse(response.body)`, this also means we can group some lines in
one.
This commit is contained in:
Javi Martín
2023-09-06 15:13:20 +02:00
parent cb32d19f5e
commit 2951d0fdf8
4 changed files with 13 additions and 16 deletions

View File

@@ -408,6 +408,9 @@ Rails/RelativeDateConstant:
Rails/RequestReferer:
Enabled: true
Rails/ResponseParsedBody:
Enabled: true
Rails/ReversibleMigration:
Enabled: true