[Fix #4008] Add new `Style/ExpandPathArguments` cop by koic · Pull Request #5552 · rubocop/rubocop
Fixes #4008. Summary This cop checks for use of the File.expand_path arguments. # bad File.expand_path('..', __FILE__) # good File.expand_path(__dir__) Likewise, it also checks for the Pat...