Skip to content

Commit

Permalink
chore: tagliatelle (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
FoseFx authored Jan 8, 2025
1 parent d4af5f1 commit da5ca39
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
18 changes: 17 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,27 @@ linters:
- protogetter # TODO
- revive # TODO
- stylecheck # TODO
- tagliatelle # TODO
- testpackage # TODO

linters-settings:
goconst:
ignore-tests: true
min-occurrences: 2
ignore-strings: '(true|false)' # regex
tagliatelle:
case:
use-field-name: true
rules:
json: snake
yaml: camel
xml: snake
toml: snake
bson: snake
avro: snake
mapstructure: snake
env: upperSnake
envconfig: upperSnake
overrides:
- pkg: user-svc/internal/hwkc
rules:
json: camel
6 changes: 3 additions & 3 deletions cmd/spice/spice.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ var CLI struct {
Schema struct{} `cmd:"" help:"Print SpiceDB schema"`
Test struct{} `cmd:"" help:"Runs SpiceDB tests using zed"`
Directory string `flag:"" short:"d" type:"path" default:"./spicedb" help:"SpiceDB directory"`
Endpoint string `flag:"" short:"e" env:"ZED_ENDPOINT" help:"e.g., 'spicedb:50051'"`
Token string `flag:"" short:"t" env:"ZED_TOKEN" help:"SpiceDB token"`
Insecure bool `flag:"" default:"false" env:"ZED_INSECURE" help:"connect over plaintext connection"`
Endpoint string `flag:"" short:"e" env:"ZED_ENDPOINT" help:"e.g., 'spicedb:50051'"` //nolint:tagliatelle,lll
Token string `flag:"" short:"t" env:"ZED_TOKEN" help:"SpiceDB token"` //nolint:tagliatelle,lll
Insecure bool `flag:"" default:"false" env:"ZED_INSECURE" help:"connect over plaintext connection"` //nolint:tagliatelle,lll
}

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func NewFieldTypeDataSelectOptionsRemovedEvent(
}

type FieldTypeDataSelectOptionsUpsertedEvent struct {
UpsertedSelectOptions []models.UpdateSelectOption `json:"UpsertedSelectOptions"`
UpsertedSelectOptions []models.UpdateSelectOption `json:"upserted_select_options"`
}

func NewFieldTypeDataSelectOptionsUpsertedEvent(
Expand Down
2 changes: 1 addition & 1 deletion services/tasks-svc/internal/task/events/v1/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ type SubtaskDeletedEvent struct {
}

type TaskStatusUpdatedEvent struct {
Status string `json:"subtask_id"`
Status string `json:"status"`
}

func NewTaskCreatedEvent(
Expand Down

0 comments on commit da5ca39

Please sign in to comment.