You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to flag variables, fields and properties in the codebase that have a singular name. Also variables that are sole objects but have a plural name (less affected by this)
Expected Behavior:
var something =new[]{""}^^^^^^^^^"variables that represent a collection should have a name that is a plural"
The text was updated successfully, but these errors were encountered:
It depends whether there is some general algorithm how to detect if a noun is a singular or a plural. If a word does not end with "s", it's singular, that seems to be easy. The tricky part is how to detect plural because the fact that a word ends with "s" does not mean that it's plural.
Another option is to have a full list of singular and plural nouns.
Just wondering..
I'd like to be able to flag variables, fields and properties in the codebase that have a singular name. Also variables that are sole objects but have a plural name (less affected by this)
Expected Behavior:
The text was updated successfully, but these errors were encountered: