Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: delete churn, entropy, typo from hipcheck core #644

Closed
wants to merge 1 commit into from

Conversation

bmarr-mitre
Copy link
Contributor

Resolves #640
Resolves #641
Resolves #642

Copy link
Collaborator

@j-lanson j-lanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, according to GitHub, this has some merge conflicts with origin/main that need addressing

concerns,
})
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're on windows, and it seems like your setup doesn't include UNIX-style newlines at the ends of files. Please look for a way to fix this. You'll know when the commit diff here doesn't show a red circle.

Comment on lines 141 to 78
pub fn identity_analysis(db: &dyn AnalysisProvider) -> Result<QueryResult> {
let results = db.identity_metric()?;
let num_flagged = results
.matches
.iter()
.filter(|m| m.identities_match)
.count() as u64;
let percent_flagged = num_flagged as f64 / results.matches.len() as f64;
let value = F64::new(percent_flagged).expect("Percent threshold should never be NaN");
Ok(QueryResult {
value: serde_json::to_value(value)?,
concerns: vec![],
})
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've removed identity analysis as a function, might as well remove the definition of identity_metric()

@bmarr-mitre
Copy link
Contributor Author

deleting and resubmitting a different branch

@alilleybrinker alilleybrinker deleted the delete-entropy-churn-typo branch November 22, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
2 participants