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

Add new check_private_items config #11842

Merged
merged 2 commits into from Nov 21, 2023

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Nov 19, 2023

Fixes #11742.

It adds a new configuration which allows for MISSING_SAFETY_DOC, UNNECESSARY_SAFETY_DOC, MISSING_PANICS_DOC and MISSING_ERRORS_DOC lints to run on private items.

changelog: [missing_safety_doc], [unnecessary_safety_doc], [missing_panics_doc], [missing_errors_doc]: Added the [check-private-items] configuration to enable lints on private items.
#11842

r? @blyxyas

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 19, 2023
@xFrednet
Copy link
Member

If this config is specific to doc lints it might be good to include that in the config name. If it's intended as a general setting, then the name should be fine :)

Copy link
Member

@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

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

Meow Meow
Currently blocked by #11801

clippy_config/src/conf.rs Show resolved Hide resolved
@GuillaumeGomez
Copy link
Member Author

I kinda had in mind something that could be generalized indeed. Should I make the change to make it specific for docs?

Copy link
Member

@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

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

Hmmm, you're probably right, it should be a general configuration option. Thanks for the clarification.

LGTM, thanks! ❤️

@blyxyas blyxyas added the S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work label Nov 19, 2023
@GuillaumeGomez
Copy link
Member Author

Great! I blessed the failing test so now waiting for the other PR to get merged. :)

@bors
Copy link
Collaborator

bors commented Nov 20, 2023

☔ The latest upstream changes (presumably #11801) made this pull request unmergeable. Please resolve the merge conflicts.

@blyxyas blyxyas removed the S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work label Nov 20, 2023
@GuillaumeGomez
Copy link
Member Author

Rebased and fixed the merge conflict.

Copy link
Member

@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

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

Meow

@blyxyas
Copy link
Member

blyxyas commented Nov 21, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 21, 2023

📌 Commit f355943 has been approved by blyxyas

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Nov 21, 2023

⌛ Testing commit f355943 with merge 4b1d0aa...

@bors
Copy link
Collaborator

bors commented Nov 21, 2023

💔 Test failed - checks-action_test

bors added a commit that referenced this pull request Nov 21, 2023
…lyxyas

Add new `check_private_items` config

Fixes #11742.

It adds a new configuration which allows for `MISSING_SAFETY_DOC`, `UNNECESSARY_SAFETY_DOC`, `MISSING_PANICS_DOC` and `MISSING_ERRORS_DOC` lints to run on private items.

r? `@blyxyas`
@GuillaumeGomez
Copy link
Member Author

I forgot the changelog once again... Added it!

@xFrednet
Copy link
Member

@bors retry

@bors
Copy link
Collaborator

bors commented Nov 21, 2023

⌛ Testing commit f355943 with merge 87162ca...

bors added a commit that referenced this pull request Nov 21, 2023
…lyxyas

Add new `check_private_items` config

Fixes #11742.

It adds a new configuration which allows for `MISSING_SAFETY_DOC`, `UNNECESSARY_SAFETY_DOC`, `MISSING_PANICS_DOC` and `MISSING_ERRORS_DOC` lints to run on private items.

changelog: add a new configuration which allows for `MISSING_SAFETY_DOC`, `UNNECESSARY_SAFETY_DOC`, `MISSING_PANICS_DOC` and `MISSING_ERRORS_DOC` lints to run on private items.

r? `@blyxyas`
@xFrednet
Copy link
Member

@bors r- (I've changed the changelog entry and want to refresh the commit)

@xFrednet
Copy link
Member

@GuillaumeGomez before I r=blyxyas, could you run cargo collect-metadata? The previous bors CI complained about this check, if I saw it correctly

@GuillaumeGomez
Copy link
Member Author

What message you want in the commit exactly? (So I can update it)

@xFrednet
Copy link
Member

xFrednet commented Nov 21, 2023

I wanted to add links to the config and lint names. Usually we update the messages in the end, when the changelog is written, but some preprocessing never hurts ^^

@bors
Copy link
Collaborator

bors commented Nov 21, 2023

💔 Test failed - checks-action_test

…doc`], [`missing_errors_doc`]: Added the [`check-private-items`] configuration to enable lints on private items.

[rust-lang#11842](rust-lang#11842)
@GuillaumeGomez
Copy link
Member Author

Ran the command and updated the commit message.

@xFrednet
Copy link
Member

Thank you for the quick updates :D

@bors r=blyxyas

@bors
Copy link
Collaborator

bors commented Nov 21, 2023

📌 Commit 5cdda53 has been approved by blyxyas

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Nov 21, 2023

⌛ Testing commit 5cdda53 with merge 4d56366...

@bors
Copy link
Collaborator

bors commented Nov 21, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: blyxyas
Pushing 4d56366 to master...

@bors bors merged commit 4d56366 into rust-lang:master Nov 21, 2023
8 checks passed
@GuillaumeGomez GuillaumeGomez deleted the check_private_items-config branch November 21, 2023 12:23
gernot-ohner pushed a commit to gernot-ohner/rust-clippy that referenced this pull request Dec 12, 2023
…doc`], [`missing_errors_doc`]: Added the [`check-private-items`] configuration to enable lints on private items.

[rust-lang#11842](rust-lang#11842)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

missing_errors_doc and missing_panics_doc for private functions
5 participants