I want to exclude a global variable from rubocop but I'm not being able to find the rule name. I tried adding
GlobalVars:
Exclude:
- redis
to .rubocop.yml
but no luck.
The error says Do not introduce global variables.
Switch Exclude
with AllowedVariables
.
in .rubocop.yml
:
GlobalVars:
AllowedVariables:
- $redis
Note that the variable name requires the leading dollar sign.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With