rubocops: silence parser warning
This commit is contained in:
parent
1f3de1d5b2
commit
3e4cb206bb
@ -6,7 +6,11 @@ require "active_support/core_ext/array/conversions"
|
|||||||
require "rubocop-performance"
|
require "rubocop-performance"
|
||||||
require "rubocop-rails"
|
require "rubocop-rails"
|
||||||
require "rubocop-rspec"
|
require "rubocop-rspec"
|
||||||
require "rubocop-sorbet"
|
|
||||||
|
require_relative "../warnings"
|
||||||
|
Warnings.ignore :parser_syntax do
|
||||||
|
require "rubocop-sorbet"
|
||||||
|
end
|
||||||
|
|
||||||
require_relative "io_read"
|
require_relative "io_read"
|
||||||
require_relative "shell_commands"
|
require_relative "shell_commands"
|
||||||
|
|||||||
@ -1,15 +1,6 @@
|
|||||||
# typed: false
|
# typed: false
|
||||||
# frozen_string_literal: true
|
# 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 "extend/string"
|
||||||
require "rubocops/shared/helper_functions"
|
require "rubocops/shared/helper_functions"
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,11 @@
|
|||||||
|
|
||||||
require "rubocop"
|
require "rubocop"
|
||||||
|
|
||||||
|
require_relative "../../warnings"
|
||||||
|
Warnings.ignore :parser_syntax do
|
||||||
|
require "parser/current"
|
||||||
|
end
|
||||||
|
|
||||||
module RuboCop
|
module RuboCop
|
||||||
module Cop
|
module Cop
|
||||||
# Helper functions for cops.
|
# Helper functions for cops.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user