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
When i have '$/' in file i get cop 'Prefer $INPUT_RECORD_SEPARATOR over $/.'
However if replace $/ with $INPUT_RECORD_SEPARATOR
I get warning
W: 15: Global variable `$input_record_separator' not initialized
(wich is true as such variable seems not to exist, returning nil when queried in irb)
Some of the proper global variables are not defined unless you do require 'english'. This is one of them. I guess the message could be more informative.
The English library is now mentioned where relevant. For instance the message you got will now be 'Prefer $INPUT_RECORD_SEPARATOR from the English library over $/.'
Using ruby 2.0.0-p0 via rbenv.
When i have '$/' in file i get cop 'Prefer$INPUT_RECORD_SEPARATOR over $ /.'
However if replace $/ with $INPUT_RECORD_SEPARATOR
I get warning
W: 15: Global variable `$input_record_separator' not initialized
(wich is true as such variable seems not to exist, returning nil when queried in irb)
Offending file example
The text was updated successfully, but these errors were encountered: