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

Feature: Ignore MemberNames Rule for Private Members #714

Open
samueleaton opened this issue Sep 13, 2024 · 0 comments
Open

Feature: Ignore MemberNames Rule for Private Members #714

samueleaton opened this issue Sep 13, 2024 · 0 comments

Comments

@samueleaton
Copy link

Description

It would be useful to disable the MemberNames rule for members that are private, since the casing has no external consequences.

Known workarounds

Current workaround is to put all the private members at the end of a class (after the public members) and then disable the MemberNames rule after the public members but before the private members.

Rule Configuration

Possible addition could be a "ignorePrivateMembers" in the config. Example:

{
    ...,
    "memberNames": {
        "enabled": true,
        "config": {
            "naming": "PascalCase",
            "underscores": "AllowPrefix",
            "ignorePrivateMembers": true
        }
    },
    ...
}
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

No branches or pull requests

1 participant