Unused parameters are misleading. Whatever the values passed to such parameters, the behavior will be the same.
func compute(start int) { // Noncompliant; start is not used
sum := 0
for i := 0; i < 10; i++ {
sum += i
}
fmt.Println("Result:", sum)
}
func compute() {
sum := 0
for i := 0; i < 10; i++ {
sum += i
}
fmt.Println("Result:", sum)
}