Skip to content

Commit 2e2bd13

Browse files
authored
Merge pull request #9 from peternycander/syntax_tree_support
Adds support for syntax tree
2 parents 3600e0a + 7efdad7 commit 2e2bd13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rubocop.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
if ENV.fetch("RUBOCOP_GEM_VERSIONS").downcase == "gemfile"
1111
require "bundler"
1212

13+
rubocop_config_gems_without_prefix = %w[syntax_tree].to_set
14+
1315
Bundler::LockfileParser.new(Bundler.read_file("Gemfile.lock")).specs
14-
.select { |spec| spec.name.start_with? "rubocop" }
16+
.select { |spec| spec.name.start_with?("rubocop") || rubocop_config_gems_without_prefix.include?(spec.name) }
1517
.map { |spec| "#{spec.name}:#{spec.version}" }
1618
else
1719
ENV.fetch("RUBOCOP_GEM_VERSIONS").split

0 commit comments

Comments
 (0)