Ruby

Ruby

Made by DeepSource

require_relative called with current file path RB-W1002

Anti-pattern
Minor
Autofix

Calling require_relative with the path of the file it was called from doesn't perform any meaningful action since the file being executed is already in the LOAD_PATH.

Bad practice

# foo.rb
require_relative 'foo'
require_relative 'bar'

Recommended

# foo.rb
require_relative 'bar'