Add cargo collect-metadata
as an cargo alias for the metadata collection lint
#7217
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new alias to run the metadata collection monster on
clippy_lints
. I'm currently using it to create themetadata_collection.json
file and I plan to use it in thedeply.sh
script. Having it as a new alias enables us to simply use:It sometimes requires running
cargo clean
before collecting the metadata due to caching. I'm still debating if I should include a cargo clean as part of therun_metadata_collection_lint
test or not. Input on this would be greatly appreciated 🙃That's it, just a small change that can be reviewed and merged in parallel to #7214.
See: #7172 for the full metadata collection to-do list or to suggest a new feature in connection to it.
changelog: none
r? @flip1995 btw. feel free to pass these PRs one to other team members as well if you want.