brew/Library/Homebrew/utils/rubocop.rb

20 lines
443 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 = [
"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.",
]
warnings.each do |warning|
Warning.ignore Regexp.new(warning)
end
require "rubocop"
exit RuboCop::CLI.new.run