We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3600e0a + 7efdad7 commit 2e2bd13Copy full SHA for 2e2bd13
rubocop.rb
@@ -10,8 +10,10 @@
10
if ENV.fetch("RUBOCOP_GEM_VERSIONS").downcase == "gemfile"
11
require "bundler"
12
13
+ rubocop_config_gems_without_prefix = %w[syntax_tree].to_set
14
+
15
Bundler::LockfileParser.new(Bundler.read_file("Gemfile.lock")).specs
- .select { |spec| spec.name.start_with? "rubocop" }
16
+ .select { |spec| spec.name.start_with?("rubocop") || rubocop_config_gems_without_prefix.include?(spec.name) }
17
.map { |spec| "#{spec.name}:#{spec.version}" }
18
else
19
ENV.fetch("RUBOCOP_GEM_VERSIONS").split
0 commit comments