Eric Huss
966621563e
lint-docs: Warn on missing lint when documenting.
2020-12-26 13:48:09 -08:00
Camelid
b4b66f6e24
Fix trimming of lint docs
...
It was removing all the indentation before.
Co-authored-by: Eric Huss <eric@huss.org>
2020-12-06 14:11:02 -08:00
Eric Huss
a90fdfc701
lint-docs: Use strip-prefix to simplify.
2020-11-29 07:57:55 -08:00
Eric Huss
228510b0ec
lint-docs: Add some extra detail to the error message.
...
This will hopefully help users figure out what was wrong and how
to fix it.
2020-11-29 07:39:36 -08:00
Eric Huss
d2d91b42a5
lint-docs: Add --validate flag to validate lint docs separately.
2020-11-28 13:39:02 -08:00
Eric Huss
f17e6487b2
lint-docs: Move free functions into methods of LintExtractor.
...
This helps avoid needing to pass so many parameters around.
2020-11-28 13:38:58 -08:00
Mark Rousskov
7e24136996
Pass --target to lint docs
...
Otherwise, we may not have a standard library built for the native "host" target
of the rustc being run.
2020-09-16 17:25:39 -04:00
Eric Huss
32efcfca2f
Include non-JSON output in error display for lint-doc failure.
...
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-14 14:42:37 -07:00
Eric Huss
c04973585d
Support ignore for lint examples.
2020-09-13 08:48:03 -07:00
Eric Huss
ce014be0b9
Link rustdoc lint docs to the rustdoc book.
2020-09-13 08:48:03 -07:00
Eric Huss
45c1e0ae07
Auto-generate lint documentation.
2020-09-13 08:48:03 -07:00