Skip to content

Commit

Permalink
Determine gem status with gemspec instead of Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre authored and mergify[bot] committed Sep 4, 2020
1 parent 9fa93fc commit 533375c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop.rb
Expand Up @@ -629,6 +629,6 @@
require_relative 'rubocop/target_ruby'
require_relative 'rubocop/yaml_duplication_checker'

unless File.exist?("#{__dir__}/../Gemfile") # Check if we are a gem
unless File.exist?("#{__dir__}/../rubocop.gemspec") # Check if we are a gem
RuboCop::ResultCache.rubocop_required_features = $LOADED_FEATURES - before_us
end

0 comments on commit 533375c

Please sign in to comment.