Skip to content

Commit

Permalink
tagliatelle enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Dec 31, 2023
1 parent 321be1b commit 553ee85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ linters:
- scopelint
- structcheck
- tagalign
- tagliatelle
- testableexamples
- testifylint
- testpackage
Expand Down
2 changes: 1 addition & 1 deletion examples/topic/topicreader/topicreader_simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func ReadMessagesByBatch(ctx context.Context, reader *topicreader.Reader) {

// UnmarshalMessageContentToJSONStruct is example for effective way for unmarshal json message content to value
func UnmarshalMessageContentToJSONStruct(msg *topicreader.Message) {
type S struct {
type S struct { //nolint:tagliatelle

Check failure on line 36 in examples/topic/topicreader/topicreader_simple.go

View workflow job for this annotation

GitHub Actions / golangci-lint-examples

directive `//nolint:tagliatelle` is unused for linter "tagliatelle" (nolintlint)
MyField int `json:"my_field"`

Check failure on line 37 in examples/topic/topicreader/topicreader_simple.go

View workflow job for this annotation

GitHub Actions / golangci-lint-examples

json(camel): got 'my_field' want 'myField' (tagliatelle)
}

Expand Down

0 comments on commit 553ee85

Please sign in to comment.