You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently ENV["VAR"].some_method is permitted. However the cop triggers if you use the safe navigation operator to call that method. I don't think it should.
So that would allow something like this:
ENV['ROLES']&.split(';')
The text was updated successfully, but these errors were encountered:
jcoyne
changed the title
Style/FetchEnvVar should not warn on method call with
Style/FetchEnvVar should not warn on method call with safe navigation
Apr 25, 2022
Currently
ENV["VAR"].some_method
is permitted. However the cop triggers if you use the safe navigation operator to call that method. I don't think it should.So that would allow something like this:
The text was updated successfully, but these errors were encountered: