This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit af1bb836ddc2957f14c373cf7a0cafb9dc20eaa4
Author: Tadayoshi Sato <sato.tadayo...@gmail.com>
AuthorDate: Thu Jul 14 15:27:33 2022 +0900

    chore(lint): suppress maintidx with TODO for later refactoring
---
 pkg/cmd/install.go      | 2 +-
 pkg/cmd/run.go          | 2 +-
 pkg/install/cluster.go  | 1 +
 pkg/install/operator.go | 1 +
 pkg/trait/jvm.go        | 1 +
 5 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/pkg/cmd/install.go b/pkg/cmd/install.go
index fe39cbbfb..1185c50b6 100644
--- a/pkg/cmd/install.go
+++ b/pkg/cmd/install.go
@@ -210,7 +210,7 @@ type installCmdOptions struct {
        olmOptions olm.Options
 }
 
-// nolint: gocyclo
+// nolint: gocyclo,maintidx // TODO: refactor the code
 func (o *installCmdOptions) install(cobraCmd *cobra.Command, _ []string) error 
{
        var collection *kubernetes.Collection
        if o.OutputFormat != "" {
diff --git a/pkg/cmd/run.go b/pkg/cmd/run.go
index a1a8894d0..3425c60b8 100644
--- a/pkg/cmd/run.go
+++ b/pkg/cmd/run.go
@@ -491,7 +491,7 @@ func (o *runCmdOptions) syncIntegration(cmd *cobra.Command, 
c client.Client, sou
        return nil
 }
 
-// nolint: gocyclo
+// nolint: gocyclo,maintidx // TODO: refactor the code
 func (o *runCmdOptions) createOrUpdateIntegration(cmd *cobra.Command, c 
client.Client, sources []string) (*v1.Integration, error) {
        namespace := o.Namespace
        name := o.GetIntegrationName(sources)
diff --git a/pkg/install/cluster.go b/pkg/install/cluster.go
index 83b3f3fa9..b135b2d64 100644
--- a/pkg/install/cluster.go
+++ b/pkg/install/cluster.go
@@ -39,6 +39,7 @@ import (
        "github.com/apache/camel-k/pkg/util/kubernetes"
 )
 
+// nolint: maintidx // TODO: refactor the code
 func SetupClusterWideResourcesOrCollect(ctx context.Context, clientProvider 
client.Provider, collection *kubernetes.Collection, clusterType string, force 
bool) error {
        // Get a client to install the CRD
        c, err := clientProvider.Get()
diff --git a/pkg/install/operator.go b/pkg/install/operator.go
index 0b351b180..ce33bbea9 100644
--- a/pkg/install/operator.go
+++ b/pkg/install/operator.go
@@ -72,6 +72,7 @@ type OperatorMonitoringConfiguration struct {
 }
 
 // OperatorOrCollect installs the operator resources or adds them to the 
collector if present.
+// nolint: maintidx // TODO: refactor the code
 func OperatorOrCollect(ctx context.Context, cmd *cobra.Command, c 
client.Client, cfg OperatorConfiguration, collection *kubernetes.Collection, 
force bool) error {
        isOpenShift, err := isOpenShift(c, cfg.ClusterType)
        if err != nil {
diff --git a/pkg/trait/jvm.go b/pkg/trait/jvm.go
index 63fd61a24..05609ff9e 100644
--- a/pkg/trait/jvm.go
+++ b/pkg/trait/jvm.go
@@ -78,6 +78,7 @@ func (t *jvmTrait) Configure(e *Environment) (bool, error) {
        return true, nil
 }
 
+// nolint: maintidx // TODO: refactor the code
 func (t *jvmTrait) Apply(e *Environment) error {
        kit := e.IntegrationKit
 

Reply via email to