-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
There was a problem hiding this 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, | ||
}) | ||
} | ||
} |
There was a problem hiding this comment.
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.
hipcheck/src/analysis/mod.rs
Outdated
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![], | ||
}) | ||
} | ||
|
There was a problem hiding this comment.
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()
9cd91e1
to
b4979e3
Compare
deleting and resubmitting a different branch |
Resolves #640
Resolves #641
Resolves #642