1
Fork 0

Make lint descriptions short and to the point; always fitting the column "triggers on".

This commit is contained in:
Georg Brandl 2016-08-06 10:18:36 +02:00
parent 3b5ff0f813
commit b91c1a509e
51 changed files with 340 additions and 243 deletions

View file

@ -27,7 +27,7 @@ use utils::{is_expn_of, match_def_path, match_type, paths, span_lint, span_help_
declare_lint! {
pub INVALID_REGEX,
Deny,
"finds invalid regular expressions"
"invalid regular expressions"
}
/// **What it does:** Checks for trivial [regex] creation (with `Regex::new`,
@ -48,7 +48,7 @@ declare_lint! {
declare_lint! {
pub TRIVIAL_REGEX,
Warn,
"finds trivial regular expressions"
"trivial regular expressions"
}
/// **What it does:** Checks for usage of `regex!(_)` which (as of now) is
@ -67,7 +67,7 @@ declare_lint! {
declare_lint! {
pub REGEX_MACRO,
Warn,
"finds use of `regex!(_)`, suggests `Regex::new(_)` instead"
"use of `regex!(_)` instead of `Regex::new(_)`"
}
#[derive(Clone, Default)]