Skip to content

Commit 741ca6f

Browse files
dependabot[bot]ldez
authored andcommitted
build(deps): bump github.com/ldez/tagliatelle from 0.3.1 to 0.4.0 (golangci#3483)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 4c46df6 commit 741ca6f

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.golangci.reference.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,11 +1714,11 @@ linters-settings:
17141714
# Use the struct field name to check the name of the struct tag.
17151715
# Default: false
17161716
use-field-name: true
1717-
# `camel` is used for `json` and `yaml` (can be overridden)
1717+
# `camel` is used for `json` and `yaml`, and `header` is used for `header` (can be overridden)
17181718
# Default: {}
17191719
rules:
17201720
# Any struct tag type can be used.
1721-
# Support string case: `camel`, `pascal`, `kebab`, `snake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower`
1721+
# Support string case: `camel`, `pascal`, `kebab`, `snake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower`, `header`
17221722
json: camel
17231723
yaml: camel
17241724
xml: camel

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ require (
5757
github.com/kunwardeep/paralleltest v1.0.6
5858
github.com/kyoh86/exportloopref v0.1.11
5959
github.com/ldez/gomoddirectives v0.2.3
60-
github.com/ldez/tagliatelle v0.3.1
60+
github.com/ldez/tagliatelle v0.4.0
6161
github.com/leonklingele/grouper v1.1.1
6262
github.com/lufeee/execinquery v1.2.1
6363
github.com/maratori/testableexamples v1.0.0

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/tagliatelle.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import (
1111
func NewTagliatelle(settings *config.TagliatelleSettings) *goanalysis.Linter {
1212
cfg := tagliatelle.Config{
1313
Rules: map[string]string{
14-
"json": "camel",
15-
"yaml": "camel",
14+
"json": "camel",
15+
"yaml": "camel",
16+
"header": "header",
1617
},
1718
}
1819

0 commit comments

Comments
 (0)