Add and apply Style/SuperArguments rubocop rule

This rule was added in rubocop 1.64.0.

For clarity, in order to make it obvious that we're modifying the object
we received, we're excluding the Ahoy initializer, whose code was copied
from the Ahoy documentation.

We're also changing the `Types::BaseObject` class so we don't use a
variable with the same name as the parameter and we don't get a false
positive for this rule.
This commit is contained in:
Javi Martín
2024-07-02 18:22:38 +02:00
committed by taitus
parent 46dc4a3163
commit 16315e14d2
5 changed files with 10 additions and 8 deletions

View File

@@ -796,6 +796,11 @@ Style/StringLiterals:
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/SuperArguments:
Enabled: true
Exclude:
- "config/initializers/ahoy.rb"
Style/SymbolProc:
Enabled: true
AllowedMethods: