ldez / tagliatelle

A linter that handles struct tags.
Apache License 2.0
47 stars 9 forks source link

Add support for custom initialisms #2

Closed zx8 closed 12 months ago

zx8 commented 3 years ago

In my codebase, I use initialisms that are domain-specific and not included in Go's common initialisms.

The underlying strcase package supports customization, so I think it should be fairly simple to implement in tagliatelle: https://github.com/ettle/strcase#customization

If implemented, it would be great to also raise a PR to support the new configuration in golangci-lint.


Example of the problem:

json(goCamel): got 'docURLs' want 'docUrLs'
zx8 commented 12 months ago

Closing as this is 2.5 years old without any movement.