Skip to content

Commit

Permalink
feat: do not fail linting when running in the wrong folder
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmauro committed Oct 17, 2024
1 parent 2af6b3b commit fc52c3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zkstack_cli/crates/zkstack/src/commands/dev/commands/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ fn lint_contracts(shell: &Shell, ecosystem: &EcosystemConfig, check: bool) -> an
fn lint_autocompletion_files(_shell: &Shell, check: bool) -> anyhow::Result<()> {
let completion_folder = Path::new("./zkstack_cli/crates/zkstack/completion/");
if !completion_folder.exists() {
bail!("Please run this command from the project's root folder")
logger::info("WARNING: Please run this command from the project's root folder");
return Ok(());
}

// Array of supported shells
Expand Down

0 comments on commit fc52c3f

Please sign in to comment.