Merge pull request #12106 from Bo98/style-parser-warning

rubocops: silence parser warning
This commit is contained in:
Bo Anderson 2021-09-23 04:40:51 +01:00 committed by GitHub
commit 1f0ed9ddf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -6,7 +6,11 @@ require "active_support/core_ext/array/conversions"
require "rubocop-performance"
require "rubocop-rails"
require "rubocop-rspec"
require "rubocop-sorbet"
require_relative "../warnings"
Warnings.ignore :parser_syntax do
require "rubocop-sorbet"
end
require_relative "io_read"
require_relative "shell_commands"

View File

@ -1,15 +1,6 @@
# typed: false
# frozen_string_literal: true
# Silence compatibility warning.
begin
old_verbosity = $VERBOSE
$VERBOSE = nil
require "parser/current"
ensure
$VERBOSE = old_verbosity
end
require "extend/string"
require "rubocops/shared/helper_functions"

View File

@ -3,6 +3,11 @@
require "rubocop"
require_relative "../../warnings"
Warnings.ignore :parser_syntax do
require "parser/current"
end
module RuboCop
module Cop
# Helper functions for cops.