-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Keep property names that are sub-clients singular #1207
Comments
I'm pretty sure this was something I was tracking as part of auditing everything in #1038 but I'd need to remember just what past me was doing there... |
Yeah, I've had the email for that issue pinned since it was opened - because some day I will download the code and do a real review 😆 |
I just did a quick search through the code base and found a few properties of clients that are not singular
These 2 are also potenitally "awkwardly" named, although the property name does match the API doc, and im not sure if a "better" naming for these "action" based -ing words exists!
|
IMO The client name is a bit off. If our gospel is the API docs, they should be
Either way \Octokit\Clients\IActivitiesClient.cs(19): IStarredClient Star { get; }
\Octokit\Clients\IActivitiesClient.cs(24): IWatchedClient Watch { get; } would not be so jarring ( 😝 ) IMO In the same vein the |
The Migration API has an internal Enterprise Migrations client, so that causes troubles if I follow this. As I can't name both of them Here is the explaination by @ryangribble. Keeping this aside, I feel that since we follow the GitHub API, should we also make clients nested as in the docs and make the sub-clients as internal namespcaces. This will also solve the problem of Migrations API as we can then have something like |
👋 Hey Friends, this issue has been automatically marked as |
The convention is that a client that has sub-clients uses a singular form for the property name
eg
and not
Is this a check that could be added into the convention tests?
(maybe using something like Humanizer - which might enable us to even just put it in FormatCode and just fix it automagically)
EDIT: we can use this issue to track what places currently need fixing
The text was updated successfully, but these errors were encountered: