How can I exclude a global variable from rubocop?
Switch Exclude
with AllowedVariables
.
in .rubocop.yml
:
GlobalVars:
AllowedVariables:
- $redis
Note that the variable name requires the leading dollar sign.
Switch Exclude
with AllowedVariables
.
in .rubocop.yml
:
GlobalVars:
AllowedVariables:
- $redis
Note that the variable name requires the leading dollar sign.