fix: [Bug] Make lint command is not working (#1282)

* fix: [Bug] Make lint command is not working

Signed-off-by: Milap Jhumkhawala <milap.jhumkhawala@gmail.com>

* forgot to sign commit

Signed-off-by: Milap Jhumkhawala <milap.jhumkhawala@gmail.com>

---------

Signed-off-by: Milap Jhumkhawala <milap.jhumkhawala@gmail.com>
This commit is contained in:
Milap Jhumkhawala 2024-10-30 05:49:44 -05:00 committed by GitHub
parent c128bf7942
commit 87565a0bcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 4 deletions

View File

@ -98,7 +98,7 @@ vet:
## lint: Run go lint against code. ## lint: Run go lint against code.
.PHONY: lint .PHONY: lint
lint: lint:
@golangci-lint run -v ./... @golangci-lint run -v --timeout=5m ./...
## style: Code style -> fmt,vet,lint ## style: Code style -> fmt,vet,lint
.PHONY: style .PHONY: style

View File

@ -17,7 +17,7 @@ type AzureAIClient struct {
client *openai.Client client *openai.Client
model string model string
temperature float32 temperature float32
organizationId string // organizationId string
} }
func (c *AzureAIClient) Configure(config IAIConfig) error { func (c *AzureAIClient) Configure(config IAIConfig) error {

View File

@ -31,7 +31,7 @@ type OpenAIClient struct {
model string model string
temperature float32 temperature float32
topP float32 topP float32
organizationId string // organizationId string
} }
const ( const (

View File

@ -17,6 +17,7 @@ type Client struct {
func NewClient(c Connection) (*Client, error) { func NewClient(c Connection) (*Client, error) {
//nolint:staticcheck // Ignoring SA1019 for compatibility reasons
conn, err := grpc.Dial(fmt.Sprintf("%s:%s", c.Url, c.Port), grpc.WithTransportCredentials(insecure.NewCredentials())) conn, err := grpc.Dial(fmt.Sprintf("%s:%s", c.Url, c.Port), grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil { if err != nil {

View File

@ -26,8 +26,9 @@ import (
"net/http" "net/http"
"strings" "strings"
"time" "time"
//nolint:staticcheck // Ignoring SA1019 for compatibility reasons
gw2 "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc-ecosystem/gateway/v2/schema/v1/server_analyzer_service/schemav1gateway" gw2 "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc-ecosystem/gateway/v2/schema/v1/server_analyzer_service/schemav1gateway"
//nolint:staticcheck // Ignoring SA1019 for compatibility reasons
gw "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc-ecosystem/gateway/v2/schema/v1/server_config_service/schemav1gateway" gw "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc-ecosystem/gateway/v2/schema/v1/server_config_service/schemav1gateway"
rpc "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc/go/schema/v1/schemav1grpc" rpc "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc/go/schema/v1/schemav1grpc"
"github.com/go-logr/zapr" "github.com/go-logr/zapr"