Skip to content

Commit

Permalink
Merge pull request #210 from tylerauerbeck/initial-formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Vad1mo authored Oct 20, 2024
2 parents 1c5a7a8 + 4180067 commit 6309cc9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

linters:
enable:
# default linters
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused

- gofmt
2 changes: 1 addition & 1 deletion cmd/harbor/root/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package root

import (
"github.com/goharbor/harbor-cli/pkg/api"
"github.com/spf13/cobra"
"github.com/goharbor/harbor-cli/pkg/views/health"
"github.com/spf13/cobra"
)

func HealthCommand() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/health_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func GetHealth() (*health.GetHealthOK, error) {
return nil, err
}

response, err := client.Health.GetHealth(ctx,&health.GetHealthParams{})
response, err := client.Health.GetHealth(ctx, &health.GetHealthParams{})
if err != nil {
return nil, fmt.Errorf("error getting health status: %w", err)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/views/health/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"

"github.com/charmbracelet/bubbles/table"
"github.com/charmbracelet/bubbletea"
tea "github.com/charmbracelet/bubbletea"
"github.com/goharbor/go-client/pkg/sdk/v2.0/client/health"
"github.com/goharbor/harbor-cli/pkg/views"
"github.com/goharbor/harbor-cli/pkg/views/base/tablelist"
Expand Down Expand Up @@ -39,4 +39,4 @@ func styleStatus(status string) string {
return views.GreenStyle.Render(status)
}
return views.RedStyle.Render(status)
}
}

0 comments on commit 6309cc9

Please sign in to comment.