Add Rails/ActionControllerFlashBeforeRender rule

This rule was added in rubocop-rails 2.16.0. Even if we always follow
it, sometimes developers don't realize about this mistake immediately,
so it's good to have a rule to guarantee it won't happen.
This commit is contained in:
Javi Martín
2023-09-06 14:51:26 +02:00
parent 700ec6d0c0
commit 58a9e6c76e

View File

@@ -313,6 +313,9 @@ Performance/StringIdentifierArgument:
Performance/Sum: Performance/Sum:
Enabled: true Enabled: true
Rails/ActionControllerFlashBeforeRender:
Enabled: true
Rails/ActiveRecordCallbacksOrder: Rails/ActiveRecordCallbacksOrder:
Enabled: true Enabled: true