From 5c53bbf150b34f4fdbf89e0ba23374cfdaaa9967 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:36:06 +0200 Subject: [PATCH] Don't use possibly deprecated RuboCop api See https://github.com/rubocop/rubocop/blob/8fc2afce8e9379ffa3aeb87f23593ca5b1f8c02c/lib/rubocop/cop/team.rb#L15-L16 --- lib/erb_lint/linters/rubocop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/erb_lint/linters/rubocop.rb b/lib/erb_lint/linters/rubocop.rb index f48816c..bc67f69 100644 --- a/lib/erb_lint/linters/rubocop.rb +++ b/lib/erb_lint/linters/rubocop.rb @@ -154,7 +154,7 @@ def cop_classes end def build_team - ::RuboCop::Cop::Team.new( + ::RuboCop::Cop::Team.mobilize( cop_classes, @rubocop_config, extra_details: true,