Documentation/Markdown Lints #1007
Labels
A-documentation
Area: Adding or improving documentation
A-lint
Area: New lints
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-style
Lint: Belongs in the style lint group
T-AST
Type: Requires working with the AST
I think I already mentioned this some-where some-time some-how ago, but it just came to my mind again. Basically, I'm asking: How much of RFC 505 ("API Comment Conventions") and possibly the still in-progress RFC 1574 ("More API documentation conventions") can be automated?
I think the basic rules in RFC 505 can be automated (assuming the AST has this kind of information, of course). Here's a short recap:
//!
for crate level comments```
is found)There are some rules that require us to actually parse english (we should not try to do that):
Back in April, I ported some trivial lints for English texts to Rust (crates.io). It might make sense to use this, but it can also get noisy really fast. (Though the new error message layout should make multiple annotations per line look pretty nice.)
All those lints only deal with doc comments, but might also work for random Markdown files. They should be Allow by default.
Also, if you were to create a new lint group for this (i.e. lints dealing with Markdown instead of Rust code), it should be called Rover, clippy's
docdog friend :)The text was updated successfully, but these errors were encountered: