Skip to content

Commit 84762bb

Browse files
committed
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
1 parent 55bf7a9 commit 84762bb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/default.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ require:
55
- rubocop-github
66

77
plugins:
8-
- rubocop-performance
8+
- rubocop-performance:
9+
plugin_class_name: RuboCop::Performance::Plugin
910

1011
Bundler/DuplicatedGem:
1112
Enabled: true

config/rails.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ require:
55
- rubocop-github-rails
66

77
plugins:
8-
- rubocop-rails
8+
- rubocop-rails:
9+
plugin_class_name: RuboCop::Rails::Plugin
910

1011
GitHub/RailsControllerRenderActionSymbol:
1112
Enabled: true

0 commit comments

Comments
 (0)
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