Skip to content

Commit

Permalink
Find Gemfile.lock before gems.locked
Browse files Browse the repository at this point in the history
Generally named Gemfile.lock instead of gems.locked. So finding in gems.locked
is redundant most of the time.

There was once a proposal to deprecate Gemfile and become gems.rb in
past Bundler 2 development, but that has been abandoned.
  • Loading branch information
koic committed Aug 14, 2022
1 parent 470386c commit feac1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/config.rb
Expand Up @@ -242,7 +242,7 @@ def bundler_lock_file_path
return nil unless loaded_path

base_path = base_dir_for_path_parameters
['gems.locked', 'Gemfile.lock'].each do |file_name|
['Gemfile.lock', 'gems.locked'].each do |file_name|
path = find_file_upwards(file_name, base_path)
return path if path
end
Expand Down

0 comments on commit feac1b8

Please sign in to comment.