Skip to content

Commit

Permalink
Enable typos check (#265)
Browse files Browse the repository at this point in the history
* Enable typos check

* Fix typos
  • Loading branch information
majst01 authored Oct 21, 2024
1 parent 45c24e5 commit cc7e2ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
go-version-file: 'go.mod'
cache: false

- name: Check spelling
uses: crate-ci/typos@master

- name: Lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down
2 changes: 2 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[files]
extend-exclude = ["go.mod", "go.sum"]
4 changes: 2 additions & 2 deletions cmd/size_reservations.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (c sizeReservationsCmd) Get(id string) (*models.V1SizeReservationResponse,
func (c sizeReservationsCmd) List() ([]*models.V1SizeReservationResponse, error) {
resp, err := c.client.Size().FindSizeReservations(sizemodel.NewFindSizeReservationsParams().WithBody(&models.V1SizeReservationListRequest{
ID: viper.GetString("id"),
Partitionid: viper.GetString("parition"),
Partitionid: viper.GetString("partition"),
Projectid: viper.GetString("project"),
Sizeid: viper.GetString("size"),
}), nil)
Expand Down Expand Up @@ -218,7 +218,7 @@ func (c *sizeReservationsCmd) usage() error {
}

resp, err := c.client.Size().SizeReservationsUsage(sizemodel.NewSizeReservationsUsageParams().WithBody(&models.V1SizeReservationListRequest{
Partitionid: viper.GetString("parition"),
Partitionid: viper.GetString("partition"),
Projectid: viper.GetString("project"),
Sizeid: viper.GetString("size"),
}), nil)
Expand Down

0 comments on commit cc7e2ed

Please sign in to comment.