7 const CLIPPY_DEV_DIR: &str = "clippy_dev";
9 /// This function verifies that the tool is being executed in the clippy directory.
10 /// This is useful to ensure that setups only modify Clippys resources. The verification
11 /// is done by checking that `clippy_dev` is a sub directory of the current directory.
13 /// It will print an error message and return `false` if the directory could not be
15 fn verify_inside_clippy_dir() -> bool {
16 let path = Path::new(CLIPPY_DEV_DIR);
17 if path.exists() && path.is_dir() {
20 eprintln!("error: unable to verify that the working directory is clippys directory");