Skip to content

Fix godre:S8209: Consecutive function parameters with the same type should be grouped #426

Open

Description

@lhein

Summary

Sonar rule godre:S8209 flags consecutive function parameters of the same type that are declared separately instead of using Go's grouped parameter syntax.

Changes

  • pkg/apply/config.go: WithEnv(name string, value string) → WithEnv(name, value string)
  • pkg/apply/config.go: WithEnvFromField(name string, value string) → WithEnvFromField(name, value string)
  • pkg/patch/patch.go: removeNilValues(v reflect.Value, parent reflect.Value) → removeNilValues(v, parent reflect.Value)

Prevention

  • No golangci-lint equivalent currently enabled — Sonar remains the guard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions