Skip to content

Allow key-naming-case to support regular expression matching #56

@pedantic79

Description

@pedantic79

I've using a customize version to find keys that don't match the convention I'm looking for, but have been trying to think of a more customizable way for this to be done.

For example, I'm okay with a key like externalATM, while the camel would want it to be externalAtm. My thought was to have key-naming-case support a "regex" setting, and have another parameter to set that regex.

So something like:

sloglint -key-naming-case regex -regex-naming-case '[a-z][a-zA-Z0-9]*' ./...

This would allow others more flexibility on how they want their keys name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions