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

Lint [workspace.dependencies] #673

Merged
merged 8 commits into from
Jun 26, 2024
Merged

Lint [workspace.dependencies] #673

merged 8 commits into from
Jun 26, 2024

Conversation

Jake-Shadle
Copy link
Member

@Jake-Shadle Jake-Shadle commented Jun 26, 2024

This PR adds 2 new lints:

  • workspace-duplicates - Will be triggered if >1 direct workspace dependencies that resolve to the same crate are not using a shared [workspace.dependencies] entry
  • unused-workspace-dependency - Will be triggered if a workspace dependency is not actually used

This also improves the output for the wildcards lint to show the span information for the actual crate manifest where the wildcard dependency is declared, rather than the synthesized one used previous to this change.

Resolves: #436
Resolves: #525

@Jake-Shadle Jake-Shadle merged commit 6344cc5 into main Jun 26, 2024
10 of 11 checks passed
@Jake-Shadle Jake-Shadle deleted the workspace-duplicate-lint branch June 26, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant