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

new rule: redeclared dependency #534

Open
RBusarow opened this issue Apr 12, 2022 · 0 comments
Open

new rule: redeclared dependency #534

RBusarow opened this issue Apr 12, 2022 · 0 comments
Labels
New Rule Something new to check for

Comments

@RBusarow
Copy link
Member

This rule should find and remove and a dependency declaration where

  • the exact same dependency is declared multiple times in this same module (leave one of them)
  • the same dependency is declared in an upstream source set in the same module (if api and testImplementation, then testImplementation is a redeclaration)
  • the same dependency is declared for different configurations of the same source set -- typically api and implementation. In this case, the upstream config (api) wins.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Rule Something new to check for
Projects
None yet
Development

No branches or pull requests

1 participant