Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude Certain Types #10

Open
graywolf336 opened this issue Jan 31, 2022 · 3 comments · May be fixed by #21
Open

Exclude Certain Types #10

graywolf336 opened this issue Jan 31, 2022 · 3 comments · May be fixed by #21

Comments

@graywolf336
Copy link

We need a way to exclude certain types so we don't have to continuously disable this linter on that line. I would love regex support or something similar. For example, working with mongo, the default ID field is _id.

@georgettica
Copy link

georgettica commented May 22, 2022

in addition, somethimes yaml/json has wierdly formatted inputs

type objName struct {
        Event struct {
                EventType  string    `yaml:"event_type"`
                OccurredAt time.Time `yaml:"occurred_at"`
        } `yaml:"event"`
}
main.go:XXX : yaml(camel): got 'event_type' want 'eventType' (tagliatelle)

@vsachs
Copy link

vsachs commented Feb 7, 2023

Plus one to this issue, sometimes as a consumer of a 3rd party API we don't have control over the naming of the field but would like to use consistent naming internally.

@ldez
Copy link
Owner

ldez commented Feb 7, 2023

related to #3, I need to finish my work on that.

@ldez ldez linked a pull request Jun 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants