Define ignored warnings as Regexp
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
3595ac1f7f
commit
98e40d1638
@ -5,9 +5,9 @@
|
|||||||
require "warning"
|
require "warning"
|
||||||
|
|
||||||
warnings = [
|
warnings = [
|
||||||
"warning: parser/current is loading parser/ruby26, which recognizes",
|
%r{warning: parser/current is loading parser/ruby\d+, which recognizes},
|
||||||
"warning: 2.6.6-compliant syntax, but you are running 2.6.3.",
|
/warning: \d+\.\d+\.\d+-compliant syntax, but you are running \d+\.\d+\.\d+\./,
|
||||||
"warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.",
|
%r{warning: please see https://github\.com/whitequark/parser#compatibility-with-ruby-mri\.},
|
||||||
]
|
]
|
||||||
|
|
||||||
warnings.each do |warning|
|
warnings.each do |warning|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user