From fde05ffbd980547a0820b02dd325eaa9b2ebb0c3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 15 Jan 2023 11:01:53 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/ldez/tagliatelle from 0.3.1 to 0.4.0 Bumps [github.com/ldez/tagliatelle](https://github.com/ldez/tagliatelle) from 0.3.1 to 0.4.0. - [Release notes](https://github.com/ldez/tagliatelle/releases) - [Commits](https://github.com/ldez/tagliatelle/compare/v0.3.1...v0.4.0) --- updated-dependencies: - dependency-name: github.com/ldez/tagliatelle dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 30e0426a0457..185534d6b32f 100644 --- a/go.mod +++ b/go.mod @@ -57,7 +57,7 @@ require ( github.com/kunwardeep/paralleltest v1.0.6 github.com/kyoh86/exportloopref v0.1.11 github.com/ldez/gomoddirectives v0.2.3 - github.com/ldez/tagliatelle v0.3.1 + github.com/ldez/tagliatelle v0.4.0 github.com/leonklingele/grouper v1.1.1 github.com/lufeee/execinquery v1.2.1 github.com/maratori/testableexamples v1.0.0 diff --git a/go.sum b/go.sum index 83be7c9bb78c..e1d368123466 100644 --- a/go.sum +++ b/go.sum @@ -334,8 +334,8 @@ github.com/kyoh86/exportloopref v0.1.11 h1:1Z0bcmTypkL3Q4k+IDHMWTcnCliEZcaPiIe0/ github.com/kyoh86/exportloopref v0.1.11/go.mod h1:qkV4UF1zGl6EkF1ox8L5t9SwyeBAZ3qLMd6up458uqA= github.com/ldez/gomoddirectives v0.2.3 h1:y7MBaisZVDYmKvt9/l1mjNCiSA1BVn34U0ObUcJwlhA= github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= -github.com/ldez/tagliatelle v0.3.1 h1:3BqVVlReVUZwafJUwQ+oxbx2BEX2vUG4Yu/NOfMiKiM= -github.com/ldez/tagliatelle v0.3.1/go.mod h1:8s6WJQwEYHbKZDsp/LjArytKOG8qaMrKQQ3mFukHs88= +github.com/ldez/tagliatelle v0.4.0 h1:sylp7d9kh6AdXN2DpVGHBRb5guTVAgOxqNGhbqc4b1c= +github.com/ldez/tagliatelle v0.4.0/go.mod h1:mNtTfrHy2haaBAw+VT7IBV6VXBThS7TCreYWbBcJ87I= github.com/leonklingele/grouper v1.1.1 h1:suWXRU57D4/Enn6pXR0QVqqWWrnJ9Osrz+5rjt8ivzU= github.com/leonklingele/grouper v1.1.1/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= From d5751d4d1a2022de7d6cde3b10102c0b9fd4abf6 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sun, 15 Jan 2023 13:23:39 +0100 Subject: [PATCH 2/2] feat: update --- .golangci.reference.yml | 4 ++-- pkg/golinters/tagliatelle.go | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.golangci.reference.yml b/.golangci.reference.yml index 9a4fe43e8d68..fda48cceec85 100644 --- a/.golangci.reference.yml +++ b/.golangci.reference.yml @@ -1689,11 +1689,11 @@ linters-settings: # Use the struct field name to check the name of the struct tag. # Default: false use-field-name: true - # `camel` is used for `json` and `yaml` (can be overridden) + # `camel` is used for `json` and `yaml`, and `header` is used for `header` (can be overridden) # Default: {} rules: # Any struct tag type can be used. - # Support string case: `camel`, `pascal`, `kebab`, `snake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower` + # Support string case: `camel`, `pascal`, `kebab`, `snake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower`, `header` json: camel yaml: camel xml: camel diff --git a/pkg/golinters/tagliatelle.go b/pkg/golinters/tagliatelle.go index 275670e10da0..67c14cbd48e3 100644 --- a/pkg/golinters/tagliatelle.go +++ b/pkg/golinters/tagliatelle.go @@ -11,8 +11,9 @@ import ( func NewTagliatelle(settings *config.TagliatelleSettings) *goanalysis.Linter { cfg := tagliatelle.Config{ Rules: map[string]string{ - "json": "camel", - "yaml": "camel", + "json": "camel", + "yaml": "camel", + "header": "header", }, }