FSharpLint icon indicating copy to clipboard operation
FSharpLint copied to clipboard

Feature: Ignore MemberNames Rule for Private Members

Open samueleaton opened this issue 1 year ago • 0 comments

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

samueleaton avatar Sep 13 '24 16:09 samueleaton