mirror of
https://github.com/gosticks/brew.git
synced 2026-08-12 04:30:21 +00:00
rubocops: silence parser warning
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user