brew/Library/Homebrew/utils/rubocop.rb

20 lines
467 B
Ruby
Raw Normal View History

2021-02-09 18:59:29 -05:00
#!/usr/bin/env ruby
# typed: false
# frozen_string_literal: true
require "warning"
warnings = [
%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\.},
2021-02-09 18:59:29 -05:00
]
warnings.each do |warning|
Warning.ignore Regexp.new(warning)
end
require "rubocop"
exit RuboCop::CLI.new.run