mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
20 lines
443 B
Ruby
20 lines
443 B
Ruby
![]() |
#!/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
|