Skip to content

--ignored-dirs argument ignores the project itself #93

@orhun

Description

@orhun

I'm not sure if this is the expected behavior but I came across this issue while I was working on #92

To reproduce:

$ cargo new repro
$ cargo build
# target directory is created
$ kondo
Projects cleaned: 0, Bytes deleted: 0.0B
# nothing is cleaned

I think this is due to:

kondo/kondo/src/main.rs

Lines 57 to 61 in 51828a1

fn prepare_directories(dirs: Vec<PathBuf>) -> Result<Vec<PathBuf>, Box<dyn Error>> {
let cd = current_dir()?;
if dirs.is_empty() {
return Ok(vec![cd]);
}

might be regression in #90

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions