Skip to content

Commit 87565a0

Browse files
authored
fix: [Bug] Make lint command is not working (#1282)
* fix: [Bug] Make lint command is not working Signed-off-by: Milap Jhumkhawala <[email protected]> * forgot to sign commit Signed-off-by: Milap Jhumkhawala <[email protected]> --------- Signed-off-by: Milap Jhumkhawala <[email protected]>
1 parent c128bf7 commit 87565a0

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ vet:
9898
## lint: Run go lint against code.
9999
.PHONY: lint
100100
lint:
101-
@golangci-lint run -v ./...
101+
@golangci-lint run -v --timeout=5m ./...
102102

103103
## style: Code style -> fmt,vet,lint
104104
.PHONY: style

pkg/ai/azureopenai.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type AzureAIClient struct {
1717
client *openai.Client
1818
model string
1919
temperature float32
20-
organizationId string
20+
// organizationId string
2121
}
2222

2323
func (c *AzureAIClient) Configure(config IAIConfig) error {

pkg/ai/openai.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type OpenAIClient struct {
3131
model string
3232
temperature float32
3333
topP float32
34-
organizationId string
34+
// organizationId string
3535
}
3636

3737
const (

pkg/custom/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type Client struct {
1717

1818
func NewClient(c Connection) (*Client, error) {
1919

20+
//nolint:staticcheck // Ignoring SA1019 for compatibility reasons
2021
conn, err := grpc.Dial(fmt.Sprintf("%s:%s", c.Url, c.Port), grpc.WithTransportCredentials(insecure.NewCredentials()))
2122

2223
if err != nil {

pkg/server/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ import (
2626
"net/http"
2727
"strings"
2828
"time"
29-
29+
//nolint:staticcheck // Ignoring SA1019 for compatibility reasons
3030
gw2 "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc-ecosystem/gateway/v2/schema/v1/server_analyzer_service/schemav1gateway"
31+
//nolint:staticcheck // Ignoring SA1019 for compatibility reasons
3132
gw "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc-ecosystem/gateway/v2/schema/v1/server_config_service/schemav1gateway"
3233
rpc "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc/go/schema/v1/schemav1grpc"
3334
"github.com/go-logr/zapr"

0 commit comments

Comments
 (0)