Currently, we pull in whatever the latest version of parser/current is... if that is ahead of our actual Ruby version, then we can get warnings, which we currently silence:
|
# Ignore parser warnings for ruby 2.7 minor version mismatches. |
|
# This is a recurring issue that occurs whenever the parser gets |
|
# ahead of our installed ruby version. |
|
%r{parser/current is loading parser/ruby27}, |
|
/2.7.\d-compliant syntax, but you are running 2.7.\d/, |
|
%r{whitequark/parser} |
However, there's another way to handle this--by having the parser version match whatever version of Ruby we're using.
See how the Rubocop project did it:
Currently, we pull in whatever the latest version of
parser/currentis... if that is ahead of our actual Ruby version, then we can get warnings, which we currently silence:dependabot-core/common/spec/warning_monkey_patch.rb
Lines 4 to 9 in 18bb480
However, there's another way to handle this--by having the parser version match whatever version of Ruby we're using.
See how the Rubocop project did it:
$VERSOSE = nil: marcandre/rubocop-ast@7081f7c