Skip to content

Commit 0a4f4e3

Browse files
authored
🌱 (chore): fix formatting for multi-line function signatures (#4668)
style: fix formatting for multi-line function signatures Added trailing commas in multi-line function declarations in `webhook.go`, `plugin_cluster_test.go`, and helm init scaffolder to align with Go formatting conventions and avoid formatting diffs from `gofmt`.
1 parent ebb8fd2 commit 0a4f4e3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: pkg/plugins/golang/v4/scaffolds/webhook.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ type webhookScaffolder struct {
5656

5757
// NewWebhookScaffolder returns a new Scaffolder for v2 webhook creation operations
5858
func NewWebhookScaffolder(config config.Config, resource resource.Resource,
59-
force bool, isLegacy bool) plugins.Scaffolder {
59+
force bool, isLegacy bool,
60+
) plugins.Scaffolder {
6061
return &webhookScaffolder{
6162
config: config,
6263
resource: resource,

Diff for: pkg/plugins/optional/helm/v1alpha/scaffolds/init.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ func (s *initScaffolder) getDeployImagesEnvVars() map[string]string {
152152
// config/webhooks and created Mutating and Validating helper structures to
153153
// generate the webhook manifest for the helm-chart
154154
func (s *initScaffolder) extractWebhooksFromGeneratedFiles() (mutatingWebhooks []templateswebhooks.DataWebhook,
155-
validatingWebhooks []templateswebhooks.DataWebhook, err error) {
155+
validatingWebhooks []templateswebhooks.DataWebhook, err error,
156+
) {
156157
manifestFile := "config/webhook/manifests.yaml"
157158

158159
if _, err = os.Stat(manifestFile); os.IsNotExist(err) {

Diff for: test/e2e/v4/plugin_cluster_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ var _ = Describe("kubebuilder", func() {
106106

107107
// Run runs a set of e2e tests for a scaffolded project defined by a TestContext.
108108
func Run(kbc *utils.TestContext, hasWebhook, isToUseInstaller, isToUseHelmChart, hasMetrics bool,
109-
hasNetworkPolicies bool) {
109+
hasNetworkPolicies bool,
110+
) {
110111
var controllerPodName string
111112
var err error
112113

0 commit comments

Comments
 (0)