-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): bump github.com/ldez/tagliatelle from 0.5.0 to 0.6.0 (#5164
) Co-authored-by: Fernandez Ludovic <[email protected]>
- Loading branch information
1 parent
9921355
commit d74f1ae
Showing
9 changed files
with
203 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
pkg/golinters/tagliatelle/testdata/tagliatelle_ignored_fields.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
//golangcitest:args -Etagliatelle | ||
//golangcitest:config_path testdata/tagliatelle_ignored_fields.yml | ||
package testdata | ||
|
||
import "time" | ||
|
||
type TglFoo struct { | ||
ID string `json:"ID"` // want `json\(camel\): got 'ID' want 'id'` | ||
UserID string `json:"UserID"` // want `json\(camel\): got 'UserID' want 'userId'` | ||
Name string `json:"name"` | ||
Value time.Duration `json:"value,omitempty"` | ||
Bar TglBar `json:"bar"` | ||
Bur `json:"bur"` | ||
} | ||
|
||
type TglBar struct { | ||
Name string `json:"-"` | ||
Value string `json:"value"` | ||
CommonServiceFooItem *TglBir `json:"CommonServiceItem,omitempty"` | ||
} | ||
|
||
type TglBir struct { | ||
Name string `json:"-"` | ||
Value string `json:"value"` | ||
ReplaceAllowList []string `mapstructure:"replace-allow-list"` | ||
} | ||
|
||
type Bur struct { | ||
Name string | ||
Value string `yaml:"Value"` // want `yaml\(camel\): got 'Value' want 'value'` | ||
More string `json:"-"` | ||
Also string `json:"also,omitempty"` | ||
ReqPerS string `avro:"req_per_s"` | ||
} |
7 changes: 7 additions & 0 deletions
7
pkg/golinters/tagliatelle/testdata/tagliatelle_ignored_fields.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
linters-settings: | ||
tagliatelle: | ||
case: | ||
ignored-fields: | ||
- CommonServiceFooItem | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters