Filter out more broad paths

This commit is contained in:
mtkennerly 2024-04-21 20:16:03 -04:00
parent 22bae27388
commit c19bea11e5
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
4 changed files with 32 additions and 67 deletions

View file

@ -26,6 +26,20 @@ pub mod placeholder {
XDG_CONFIG,
];
/// These are paths where `<placeholder>/*/` is suspicious.
pub const AVOID_WILDCARDS: &[&str] = &[
ROOT,
HOME,
WIN_APP_DATA,
WIN_LOCAL_APP_DATA,
WIN_DOCUMENTS,
WIN_PUBLIC,
WIN_PROGRAM_DATA,
WIN_DIR,
XDG_DATA,
XDG_CONFIG,
];
pub const ROOT: &str = "<root>";
pub const GAME: &str = "<game>";
pub const BASE: &str = "<base>";