Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit da5ca39

Browse files
authored
chore: tagliatelle (#917)
1 parent d4af5f1 commit da5ca39

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

.golangci.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,27 @@ linters:
3939
- protogetter # TODO
4040
- revive # TODO
4141
- stylecheck # TODO
42-
- tagliatelle # TODO
4342
- testpackage # TODO
4443

4544
linters-settings:
4645
goconst:
4746
ignore-tests: true
4847
min-occurrences: 2
4948
ignore-strings: '(true|false)' # regex
49+
tagliatelle:
50+
case:
51+
use-field-name: true
52+
rules:
53+
json: snake
54+
yaml: camel
55+
xml: snake
56+
toml: snake
57+
bson: snake
58+
avro: snake
59+
mapstructure: snake
60+
env: upperSnake
61+
envconfig: upperSnake
62+
overrides:
63+
- pkg: user-svc/internal/hwkc
64+
rules:
65+
json: camel

cmd/spice/spice.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ var CLI struct {
2828
Schema struct{} `cmd:"" help:"Print SpiceDB schema"`
2929
Test struct{} `cmd:"" help:"Runs SpiceDB tests using zed"`
3030
Directory string `flag:"" short:"d" type:"path" default:"./spicedb" help:"SpiceDB directory"`
31-
Endpoint string `flag:"" short:"e" env:"ZED_ENDPOINT" help:"e.g., 'spicedb:50051'"`
32-
Token string `flag:"" short:"t" env:"ZED_TOKEN" help:"SpiceDB token"`
33-
Insecure bool `flag:"" default:"false" env:"ZED_INSECURE" help:"connect over plaintext connection"`
31+
Endpoint string `flag:"" short:"e" env:"ZED_ENDPOINT" help:"e.g., 'spicedb:50051'"` //nolint:tagliatelle,lll
32+
Token string `flag:"" short:"t" env:"ZED_TOKEN" help:"SpiceDB token"` //nolint:tagliatelle,lll
33+
Insecure bool `flag:"" default:"false" env:"ZED_INSECURE" help:"connect over plaintext connection"` //nolint:tagliatelle,lll
3434
}
3535

3636
func main() {

services/property-svc/internal/property/events/v1/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func NewFieldTypeDataSelectOptionsRemovedEvent(
153153
}
154154

155155
type FieldTypeDataSelectOptionsUpsertedEvent struct {
156-
UpsertedSelectOptions []models.UpdateSelectOption `json:"UpsertedSelectOptions"`
156+
UpsertedSelectOptions []models.UpdateSelectOption `json:"upserted_select_options"`
157157
}
158158

159159
func NewFieldTypeDataSelectOptionsUpsertedEvent(

services/tasks-svc/internal/task/events/v1/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ type SubtaskDeletedEvent struct {
8585
}
8686

8787
type TaskStatusUpdatedEvent struct {
88-
Status string `json:"subtask_id"`
88+
Status string `json:"status"`
8989
}
9090

9191
func NewTaskCreatedEvent(

0 commit comments

Comments
 (0)