We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
clippy::join_absolute_paths
clippy::suspicious
1 parent 957cb2d commit 7d69ac6Copy full SHA for 7d69ac6
clippy_lints/src/methods/mod.rs
@@ -3719,7 +3719,7 @@ declare_clippy_lint! {
3719
/// ```
3720
#[clippy::version = "1.75.0"]
3721
pub JOIN_ABSOLUTE_PATHS,
3722
- correctness,
+ suspicious,
3723
"calls to `Path::join` which will overwrite the original path"
3724
}
3725
tests/ui/join_absolute_paths.stderr
@@ -6,6 +6,7 @@ LL | path.join("/sh");
6
|
7
= note: joining a path starting with separator will replace the path instead
8
= note: `-D clippy::join-absolute-paths` implied by `-D warnings`
9
+ = help: to override `-D warnings` add `#[allow(clippy::join_absolute_paths)]`
10
help: if this is unintentional, try removing the starting separator
11
12
LL | path.join("sh");
0 commit comments