Skip to content

Feature: Ignore MemberNames Rule for Private Members #714

@samueleaton

Description

@samueleaton

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
        }
    },
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions