Clippy does not check fancy_regex (or friends) #10205
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
Hello and thank you for this amazing project!
I see that this Regex lint https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex will only check a Regex from the
regex
crate. I would like the ability to lint Regex creation in other crates, specificallyfancy_regex
.I'm reporting this as a bug since after rust-lang/regex#607 I believed that I was able to use unwrap/expect unchecked with regex creation since I've got clippy configured to check my project. Later I realized I need multiple different regex crates. I think if someone comes across that issue and sees that
Regex::new()
is checked, they might not realize or remember they're using an unsupported crate.Lint Name
invalid_regex
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
Version
The text was updated successfully, but these errors were encountered: