require_relative is preferred over require for files within the same
project because it uses paths relative to the current file, making code
more portable and less dependent on the load path.
This change updates internal requires to use require_relative for
consistency, performance, and improved portability.
However, the test directory makes an exception and there require is
preferred
require_relative
is preferred overrequire
for files within the same project because it uses paths relative to the current file, making code more portable and less dependent on the load path.This change updates internal requires to use
require_relative
for consistency, performance, and improved portability.However, the test directory makes an exception and there
require
is preferredFix
Packaging/RequireRelativeHardcodingLib
safe offenseRef: