about summary refs log tree commit diff
path: root/src/tools/lint-docs
AgeCommit message (Collapse)AuthorLines
2023-02-28Collect all matching messages for a lint.Eric Huss-29/+28
Some examples may contain multiple lines which trigger the lint. Previously it would only display the first message. This updates it so that all matching instances of the lint are displayed.
2023-02-28Add check for errant {{produces}} marker.Eric Huss-4/+34
If a lint example has an `ignore` tag, but the lint author also includes the {{produces}} marker, then the output will just contain the text `{{produces}}`. This adds a check for this mistake and provides help on how the lint docs should be written.
2022-10-24fix the lint as requestedKagami Sascha Rosylight-4/+2
2022-06-04Add `let_underscore` lint group to `GROUP_DESCRIPTIONS`.Aaron Kofsky-0/+1
2022-05-19Minor tweaks to rustc book summary formatting.Eric Huss-3/+3
2021-09-20Adjust documentation for compatibility with 2021Mark Rousskov-0/+4
This also adjusts the lint docs generation to accept (and ignore) an allow attribute, rather than expecting the documentation to be immediately followed by the lint name.
2021-09-20Migrate to 2021Mark Rousskov-1/+1
2021-07-29rfc3052: Remove authors field from Cargo manifestsJade-1/+0
Since RFC 3052 soft deprecated the authors field anyway, hiding it from crates.io, docs.rs, and making Cargo not add it by default, and it is not generally up to date/useful information, we should remove it from crates in this repo.
2021-07-06Allow lint names to have ascii numbersRyan Levick-1/+3
2021-04-26Add 2021 compatibility lint descriptionRyan Levick-0/+1
2020-12-26lint-docs: Warn on missing lint when documenting.Eric Huss-6/+16
2020-12-06Fix trimming of lint docsCamelid-2/+2
It was removing all the indentation before. Co-authored-by: Eric Huss <eric@huss.org>
2020-11-29lint-docs: Use strip-prefix to simplify.Eric Huss-4/+3
2020-11-29lint-docs: Add some extra detail to the error message.Eric Huss-0/+13
This will hopefully help users figure out what was wrong and how to fix it.
2020-11-28lint-docs: Add --validate flag to validate lint docs separately.Eric Huss-18/+57
2020-11-28lint-docs: Move free functions into methods of LintExtractor.Eric Huss-469/+470
This helps avoid needing to pass so many parameters around.
2020-09-16Pass --target to lint docsMark Rousskov-14/+34
Otherwise, we may not have a standard library built for the native "host" target of the rustc being run.
2020-09-14Include non-JSON output in error display for lint-doc failure.Eric Huss-1/+4
Some errors, like if rustc is broken, or dylib search path is wrong, will only display non-JSON errors. Show those, too, to make it easier to debug a problem.
2020-09-13Support `ignore` for lint examples.Eric Huss-9/+20
2020-09-13Link rustdoc lint docs to the rustdoc book.Eric Huss-30/+17
2020-09-13Auto-generate lint documentation.Eric Huss-0/+657