From 84762bbf7fbf2c5a0a05889d5bd6da426e2b6fbe Mon Sep 17 00:00:00 2001 From: Mike Griffin Date: Tue, 27 May 2025 16:03:04 +0100 Subject: [PATCH] Specify the plugin class name explicitly This allows rubocop to be run in bundler standalone mode. Without specifying the plugin class name, rubocop errors out with: > Error: Failed to load plugin `rubocop-performance` because the corresponding plugin class could not be determined for instantiation. This is because it's trying to load the gem to find the name, but is unable to. Setting the class name doesn't affect running rubocop through bundler, it will still work properly --- config/default.yml | 3 ++- config/rails.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/default.yml b/config/default.yml index 115d24d6..ff7eec81 100644 --- a/config/default.yml +++ b/config/default.yml @@ -5,7 +5,8 @@ require: - rubocop-github plugins: - - rubocop-performance + - rubocop-performance: + plugin_class_name: RuboCop::Performance::Plugin Bundler/DuplicatedGem: Enabled: true diff --git a/config/rails.yml b/config/rails.yml index 80458562..cba38c11 100644 --- a/config/rails.yml +++ b/config/rails.yml @@ -5,7 +5,8 @@ require: - rubocop-github-rails plugins: - - rubocop-rails + - rubocop-rails: + plugin_class_name: RuboCop::Rails::Plugin GitHub/RailsControllerRenderActionSymbol: Enabled: true pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy