FSharpLint
FSharpLint copied to clipboard
Feature: Ignore MemberNames Rule for Private Members
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
}
},
...
}