[source,go,diff-id=1,diff-type=noncompliant]
----
if a >= 0 && a < 10 {
	doFirstThing()
	doSomething()
} else if a >= 10 && a < 20 {
	doSomethingElse()
} else if a >= 20 && a < 50 { // Noncompliant; duplicates first condition
	doFirstThing()
	doSomething()
} else {
	doTheRest()
}
----

[source,go,diff-id=2,diff-type=noncompliant]
----
switch i {
case 1:
	doFirstThing()
	doSomething()
case 2:
	doSomethingElse()
case 3: // Noncompliant; duplicates case 1's implementation
	doFirstThing()
	doSomething()
default:
	doTheRest()
}
----
