From 98e40d16380ca56adaf6c7bc9442a0cdf6044e8c Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Thu, 11 Feb 2021 07:56:27 -0500 Subject: [PATCH] Define ignored warnings as Regexp Co-authored-by: Mike McQuaid --- Library/Homebrew/utils/rubocop.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/utils/rubocop.rb b/Library/Homebrew/utils/rubocop.rb index 92479fc410..6dbc27be0b 100755 --- a/Library/Homebrew/utils/rubocop.rb +++ b/Library/Homebrew/utils/rubocop.rb @@ -5,9 +5,9 @@ require "warning" warnings = [ - "warning: parser/current is loading parser/ruby26, which recognizes", - "warning: 2.6.6-compliant syntax, but you are running 2.6.3.", - "warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.", + %r{warning: parser/current is loading parser/ruby\d+, which recognizes}, + /warning: \d+\.\d+\.\d+-compliant syntax, but you are running \d+\.\d+\.\d+\./, + %r{warning: please see https://github\.com/whitequark/parser#compatibility-with-ruby-mri\.}, ] warnings.each do |warning|