From 562e3a894047adb7fcedc1b443ef07a6eaaa4906 Mon Sep 17 00:00:00 2001 From: Viktor Csomor Date: Wed, 18 Dec 2024 14:53:03 +0100 Subject: [PATCH] CDPCP-13591 Cloudera Data Warehouse - Data Visualisation Support Fix linter issues. --- .golangci.yml | 4 +++- provider/provider.go | 2 +- provider/provider_test.go | 2 +- resources/dw/dataviz/model_dataviz.go | 3 ++- resources/dw/dataviz/resource_dataviz.go | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index f80f8ffc..cea55da8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -26,7 +26,9 @@ linters-settings: skip-generated: true output: - format: colored-line-number + formats: + - format: colored-line-number + path: stdout print-issued-lines: true issues: diff --git a/provider/provider.go b/provider/provider.go index df383a78..ba4693bb 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -13,7 +13,6 @@ package provider import ( "context" "fmt" - "github.com/cloudera/terraform-provider-cdp/resources/dw/dataviz" "os" "runtime" "strconv" @@ -32,6 +31,7 @@ import ( "github.com/cloudera/terraform-provider-cdp/resources/de" dwaws "github.com/cloudera/terraform-provider-cdp/resources/dw/cluster/aws" dwdatabasecatalog "github.com/cloudera/terraform-provider-cdp/resources/dw/databasecatalog" + "github.com/cloudera/terraform-provider-cdp/resources/dw/dataviz" "github.com/cloudera/terraform-provider-cdp/resources/dw/virtualwarehouse/hive" "github.com/cloudera/terraform-provider-cdp/resources/dw/virtualwarehouse/impala" "github.com/cloudera/terraform-provider-cdp/resources/environments" diff --git a/provider/provider_test.go b/provider/provider_test.go index 7dc213b9..d32516a7 100644 --- a/provider/provider_test.go +++ b/provider/provider_test.go @@ -13,7 +13,6 @@ package provider import ( "context" "fmt" - "github.com/cloudera/terraform-provider-cdp/resources/dw/dataviz" "os" "reflect" "regexp" @@ -32,6 +31,7 @@ import ( "github.com/cloudera/terraform-provider-cdp/resources/de" dwaws "github.com/cloudera/terraform-provider-cdp/resources/dw/cluster/aws" dwdatabasecatalog "github.com/cloudera/terraform-provider-cdp/resources/dw/databasecatalog" + "github.com/cloudera/terraform-provider-cdp/resources/dw/dataviz" "github.com/cloudera/terraform-provider-cdp/resources/dw/virtualwarehouse/hive" "github.com/cloudera/terraform-provider-cdp/resources/dw/virtualwarehouse/impala" "github.com/cloudera/terraform-provider-cdp/resources/environments" diff --git a/resources/dw/dataviz/model_dataviz.go b/resources/dw/dataviz/model_dataviz.go index b8b0bcb8..f538c8ff 100644 --- a/resources/dw/dataviz/model_dataviz.go +++ b/resources/dw/dataviz/model_dataviz.go @@ -11,8 +11,9 @@ package dataviz import ( - "github.com/cloudera/terraform-provider-cdp/utils" "github.com/hashicorp/terraform-plugin-framework/types" + + "github.com/cloudera/terraform-provider-cdp/utils" ) type resourceModel struct { diff --git a/resources/dw/dataviz/resource_dataviz.go b/resources/dw/dataviz/resource_dataviz.go index 3cc445ea..d38989e1 100644 --- a/resources/dw/dataviz/resource_dataviz.go +++ b/resources/dw/dataviz/resource_dataviz.go @@ -13,10 +13,10 @@ package dataviz import ( "context" "fmt" - "github.com/hashicorp/terraform-plugin-framework/attr" "strings" "time" + "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/types"