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

upper_case_acronyms: don't warn on public items #6805

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

matthiaskrgr
Copy link
Member

Fixes #6803

changelog: upper_case_acronyms: ignore public items

Fixes rust-lang#6803

changelog: upper_case_acronyms: ignore public items
@rust-highfive
Copy link

r? @flip1995

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 26, 2021
@ghost
Copy link

ghost commented Mar 6, 2021

Are these items still linted if you set the aggressive option on?

@matthiaskrgr
Copy link
Member Author

According to the ui-toml-test no.

@ghost
Copy link

ghost commented Mar 6, 2021

Why remove them from the aggressive mode as well?

@matthiaskrgr
Copy link
Member Author

matthiaskrgr commented Mar 6, 2021

Because it still breaks the api if public types are renamed, regardless of the case.

@ghost
Copy link

ghost commented Mar 7, 2021

For this particular lint, I'm pretty sure that you want those warnings if you turn on aggressive mode.

@matthiaskrgr
Copy link
Member Author

The aggressive mode was about warning about ASTString vs ASTSTRING, this is about false positives in public items and not related imo.

@flip1995
Copy link
Member

I agree, that the aggressive mode of this lint shouldn't change this behavior. This should be addressed, once #6806 is implemented.

@bors r+

@bors
Copy link
Collaborator

bors commented Mar 17, 2021

📌 Commit 9dba6a9 has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Mar 17, 2021

⌛ Testing commit 9dba6a9 with merge 8af2884...

@bors
Copy link
Collaborator

bors commented Mar 17, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 8af2884 to master...

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.

upper_case_acronyms warns on public items
4 participants