-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix doc_markdown DevOps false positive #12995
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
Fix doc_markdown DevOps false positive #12995
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @blyxyas (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! ❤️
@bors r+ |
…sitive, r=blyxyas Fix doc_markdown DevOps false positive This fixes an issue where the word "DevOps" ends up as a false positive for the `doc_markdown` lint. In a doc comment like this ```rust /// Call the Azure DevOps REST API. pub fn example() {} ``` the word "DevOps" is highlighted as something which should be in backticks. ``` warning: item in documentation is missing backticks --> src/lib.rs:1:20 | 1 | /// Call the Azure DevOps REST API. | ^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown = note: requested on the command line with `-W clippy::doc-markdown` help: try | 1 | /// Call the Azure `DevOps` REST API. | ~~~~~~~~ warning: `example` (lib) generated 1 warning (run `cargo clippy --fix --lib -p example` to apply 1 suggestion) Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.00s ``` This could be overriden with the `doc-valid-idents` configuration parameter as noted by the [documentation](https://rust-lang.github.io/rust-clippy/master/index.html#/doc_markdown), but I believe the word "DevOps" is sufficiently common to belong alongside exceptions like "GitHub" and "GitLab". changelog: [`doc_markdown`]: Fix DevOps false positive.
💔 Test failed - checks-action_test |
@reillysiemens Could you run |
@blyxyas, done! |
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
This fixes an issue where the word "DevOps" ends up as a false positive for the
doc_markdown
lint.In a doc comment like this
the word "DevOps" is highlighted as something which should be in backticks.
This could be overriden with the
doc-valid-idents
configuration parameter as noted by the documentation, but I believe the word "DevOps" is sufficiently common to belong alongside exceptions like "GitHub" and "GitLab".changelog: [
doc_markdown
]: Fix DevOps false positive.