Skip to content
New issue

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

Enhancement: Rake/DuplicateTask to work across multiple files #54

Open
Yv-vY opened this issue Jun 1, 2024 · 0 comments
Open

Enhancement: Rake/DuplicateTask to work across multiple files #54

Yv-vY opened this issue Jun 1, 2024 · 0 comments

Comments

@Yv-vY
Copy link

Yv-vY commented Jun 1, 2024

What would it take for the Rake/DuplicateTask cop to work across all rake files?

The use case I'm facing is the following:

  • task_a.rake defines :task_a
  • task_b.rake defines :task_a

This of course will theoretically run all occurrences of :task_a.

However in my case the two definitions of :task_a have different parameters. The second definition overrides the parameters defined in the first place and finally the first fails because it can't get a proper value for its parameters, which prevents Rake to proceed with the second task and thus there's no obvious hint of the problem.

Ending up in such situation is obviously not intended, and that's why it would be most useful to detect such issues.
use_case_rake_duplicate_task_across_files.zip

@Yv-vY Yv-vY changed the title Enhancement Rake/DuplicateTask to work across multiple files Enhancement: Rake/DuplicateTask to work across multiple files Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant