-
Notifications
You must be signed in to change notification settings - Fork 515
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
more detailed Applicability results / add metric to ConstraintResult / scoverage #76
Conversation
…straints in CheckResult.constraintResults
src/main/scala/com/amazon/deequ/analyzers/applicability/Applicability.scala
Outdated
Show resolved
Hide resolved
val constraintApplicabilities = check.constraints.zip(namedMetrics).map { | ||
case (constraint, (_, metric)) => | ||
constraint -> metric.isSuccess | ||
}.toMap |
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.
.toMap should be on the next line
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.
Still haven't lost hope for myself that I'll learn deequ style :)
Do you think we could have a rule for it in our style check?
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.
We tried to configure such rules, unfortunately, there is always an edge case that is not coverable by the stylechecker...
src/main/scala/com/amazon/deequ/analyzers/applicability/Applicability.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/amazon/deequ/constraints/AnalysisBasedConstraint.scala
Show resolved
Hide resolved
@stefan-grafberger Thank you for having a look the changes! |
Description of changes:
ConstraintResult
inCheckResult
is now linked to the metric that the constraint evaluation was based onApplicability.isApplicable(check)
now contains all constraints and their applicabilitiesmvn scoverage:report
, https://github.com/scoverage/scoverage-maven-plugin)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.