You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Make ambiguous oneOf violations configurable - #410
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
Risk Score: Normal - Addressing the comments needed
This change makes ambiguous oneOf violation handling configurable through InternalViolationExclusions. Existing behavior remains unchanged by default. Callers can disable exclusion with the new boolean constructor parameter.
The sample-rate selector now uses fractional random values. This produces accurate selection rates for non-reciprocal values such as 0.3 and 0.8.
New tests cover configurable ambiguous oneOf violations and sample-rate accuracy. No production outage risk is indicated by the supplied changes.
The selector now uses a random double to apply fractional sample rates. InternalViolationExclusions now allows callers to configure whether ambiguous oneOf violations are excluded. Tests cover multiple sample rates and both exclusion settings.
Suggested labels:coderabbit-risk:high
Priority: ⬇️ Low
Change: Feature
Merge Risk:⚪ Minimal · up to 29ddf
No actionable issue remains from the reviewed changes; the PR is ready to merge after normal checks.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
functionality for #409