mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Reject conflicting merged corrections
This commit is contained in:
parent
8c3216eec4
commit
dfe87111a8
2 changed files with 14 additions and 0 deletions
|
|
@ -204,8 +204,12 @@ function Get-SemanticErrors {
|
|||
}
|
||||
|
||||
$sameCorrection = Test-SameCorrection $RolledFinding $LeafFinding
|
||||
$correctionsConflict = (Test-HasProperty $RolledFinding 'suggested-code') -and
|
||||
(Test-HasProperty $LeafFinding 'suggested-code') -and
|
||||
$RolledFinding.'suggested-code' -cne $LeafFinding.'suggested-code'
|
||||
$explicitCrossRuleMerge = $leafReferences.Count -and
|
||||
$rolledReferences.Count -gt $leafReferences.Count -and
|
||||
-not $correctionsConflict -and
|
||||
(Test-ReferencesInclude $rolledReferences $leafReferences)
|
||||
if (-not $sameCorrection -and -not $explicitCrossRuleMerge) {
|
||||
return $false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue