We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lint/DuplicateRequire should not consider a require and a require_relative with the same name to be the same require.
Require and require_relative with the same name are considered duplicate when they are not.
Scan this:
require 'toml' require 'json' require_relative 'api' require_relative '_common' require_relative 'toml'
/Users/tsmith/dev/the_world/gitlab-ci-runner/libraries/runner.rb:24:1: W: Lint/DuplicateRequire: Duplicate require_relative detected. require_relative 'toml' ^^^^^^^^^^^^^^^^^^^^^^^
0.90.0 (using Parser 2.7.1.4, rubocop-ast 0.3.0, running on ruby 2.7.1 x86_64-darwin19)
The text was updated successfully, but these errors were encountered:
Lint/DuplicateRequire
[Fix rubocop#8627] Fix a false positive for Lint/DuplicateRequire
2d7d47b
Fixes rubocop#8627. This PR fixes a false positive for `Lint/DuplicateRequire` when same feature argument but different require method.
Merge pull request #8631 from koic/fix_false_positive_for_lint_duplic…
199294d
…ate_require [Fix #8627] Fix a false positive for `Lint/DuplicateRequire`
Successfully merging a pull request may close this issue.
Expected behavior
Lint/DuplicateRequire should not consider a require and a require_relative with the same name to be the same require.
Actual behavior
Require and require_relative with the same name are considered duplicate when they are not.
Steps to reproduce the problem
Scan this:
RuboCop version
The text was updated successfully, but these errors were encountered: