Skip to content

Commit

Permalink
be explicit about assumptions on Project methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tbillington committed Apr 26, 2024
1 parent 95f7077 commit ab1558e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kondo-lib/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ pub trait Project {
fn kind_name(&self) -> &'static str;
fn name(&self, root_dir: &Path) -> Option<String>;
fn is_project(&self, root_dir: &Path) -> bool;
/// Assumes `root_path` is a valid `Project` of the same kind resulting from `Project::is_proejct`
fn is_root_artifact(&self, root_path: &Path) -> bool;
/// Assumes `root_dir` is a valid `Project` of the same kind resulting from `Project::is_proejct`
fn root_artifacts(&self, root_dir: &Path) -> Vec<PathBuf>;
}

Expand Down

0 comments on commit ab1558e

Please sign in to comment.