提交 0cbefe85 编写于 作者: S Stan Hu 提交者: Lin Jen-Shin

Add a monkey patch to squelch warnings from whitequark/parser

上级 4ca19ab1
# frozen_literal_string: true
# This works around unnecessary static-analysis warnings that will be
# fixed via https://github.com/whitequark/parser/pull/528.
module Parser
class << self
def warn_syntax_deviation(feature, version)
return if ['2.3.8', '2.4.5', '2.5.3'].include?(version)
warn "warning: parser/current is loading #{feature}, which recognizes"
warn "warning: #{version}-compliant syntax, but you are running #{RUBY_VERSION}."
warn "warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri."
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册