2 releases
0.1.1 | Nov 6, 2020 |
---|---|
0.1.0 | Oct 5, 2020 |
#2168 in Development tools
97,601 downloads per month
Used in password-rules-parser
16KB
410 lines
A way to print simple lint messages.
The output is similar to rustc's.
lib.rs
:
A library for pretty-printing lint errors with a given source text.
The API is fairly minimal, and the output closely resembles rustc's.
Example usage:
let src = "highlight me";
let lint = PrettyLint::success(src)
.at(Span::range((1, 1), (1, src.len())))
.with_message("you have been highlighted")
.with_inline_message("look at this")
.with_file_path(file!());
println!("{}", lint);
Dependencies
~0–9.5MB
~42K SLoC