Enable Rails/SaveBang cop

It should remind us to either check the
result of calls to persisting active_record methods
or use the "bang" version, which raises exceptions instead.

This ensures that not saving a record is always noticed one
way or another.
This commit is contained in:
Jan Sandbrink
2025-12-02 14:17:55 +01:00
parent a8e662e4de
commit 28e8d13c9f
+3
View File
@@ -180,6 +180,9 @@ Rails/HttpPositionalArguments:
Rails/RequireDependency:
Enabled: true
Rails/SaveBang:
Enabled: true
# For feature specs, we tend to have longer specs that cover a larger part of the functionality.
# This is done for multiple reasons:
# * performance, as setting up integration tests is costly