Skip to content
Snippets Groups Projects
Verified Commit c78682da authored by Peter Leitzen's avatar Peter Leitzen :three:
Browse files

Enable cop Rails/TransactionExitStatement

parent a8dccd82
No related branches found
No related tags found
1 merge request!178Enable cop Rails/TransactionExitStatement
......@@ -196,6 +196,13 @@ Rails/SquishedSQLHeredocs:
Rails/TimeZone:
Enabled: false
# Checks for the use of exit statements (namely return, break and throw) in
# transactions. This is due to the eventual unexpected behavior when using
# ActiveRecord >= 7, where transactions exited using these statements are being
# rollbacked rather than committed (pre ActiveRecord 7 behavior).
Rails/TransactionExitStatement:
Enabled: true
# This cop checks for the use of old-style attribute validation macros.
Rails/Validation:
Enabled: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment