Skip to content

Add clippy linting to all packages - #7116

Merged
ytmimi merged 1 commit into
rust-lang:mainfrom
matthewhughes934:add-clippy-repeated-config
Sep 15, 2026
Merged

ytmimi merged 1 commit into
rust-lang:mainfrom
matthewhughes934:add-clippy-repeated-config

Conversation

@matthewhughes934

@matthewhughes934 matthewhughes934 commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Duplicate the same config across each package and add a script that verifies these configs are all equal, and add a workflow so that clippy is run across all packages in PRs.

Compare with: #7117 this change has

  • Con: Adds more things (the extra script+duplicate configs)
  • Pro: let's developers just invoke plain cargo clippy in any package, which works nicely with common workflows like IDE integrations
  • I did not use an LLM to create a change in this PR.
  • I used an LLM to create a change in this PR, and I have explained below how it was used.

@rustbot rustbot added A-CI Area: CI S-waiting-on-author Status: awaiting some action (such as code changes or more information) from the author. labels Sep 12, 2026
@matthewhughes934
matthewhughes934 force-pushed the add-clippy-repeated-config branch 3 times, most recently from 1f797ab to b8e813a Compare September 12, 2026 15:19
@ytmimi

ytmimi commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Might want to add a section to the contributing docs that explains how to run clippy before submitting PRs.

@matthewhughes934
matthewhughes934 force-pushed the add-clippy-repeated-config branch from b8e813a to 1e9c7d6 Compare September 14, 2026 17:03
@matthewhughes934

Copy link
Copy Markdown
Contributor Author

Might want to add a section to the contributing docs that explains how to run clippy before submitting PRs.

👍 done

@matthewhughes934
matthewhughes934 force-pushed the add-clippy-repeated-config branch from 1e9c7d6 to 3f9f3fd Compare September 14, 2026 18:52
Comment thread Contributing.md Outdated
$ cargo clippy --manifest-path ./config_proc_macro/Config.toml
# or run the command from within the package
$ cd ./config_proc_macro
$ cargo clippy

@ytmimi ytmimi Sep 14, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets use code fences for code examples. Let's also removing leading $ since they'll get included when users copy and paste the input, which is a little paper cut that can be a bit annoying to remove.

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets use code fences for code examples. Let's also removing leading $ since they'll get included when users copy and paste the input, which is a little paper cut that can be a bit annoying to remove.

Updated: 05840bc

@ytmimi ytmimi mentioned this pull request Sep 15, 2026
2 tasks
@matthewhughes934
matthewhughes934 marked this pull request as ready for review September 15, 2026 18:22
@rustbot rustbot added S-waiting-on-review Status: awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: awaiting some action (such as code changes or more information) from the author. labels Sep 15, 2026
Duplicate the same config across each package and add a script that
verifies these configs are all equal, and add a workflow so that
`clippy` is run across all packages in PRs.
@matthewhughes934
matthewhughes934 force-pushed the add-clippy-repeated-config branch from 3f9f3fd to 05840bc Compare September 15, 2026 18:24

@ytmimi ytmimi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pushing this forward 🙏🏼

View changes since this review

@ytmimi
ytmimi added this pull request to the merge queue Sep 15, 2026
Merged via the queue into rust-lang:main with commit 428eac4 Sep 15, 2026
33 checks passed
@rustbot rustbot added release-notes Needs an associated changelog entry and removed S-waiting-on-review Status: awaiting review from the assignee but also interested parties. labels Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: CI release-notes Needs an associated changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants