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
Similar to methods, local functions should probably be constrained in their maximum number of parameters (AV1561) and maximum number of statements (AV1500). Tracked by #140.
Likewise, mentions in other rules may need to be expanded to include local functions. In most cases, it should be sufficient to replace "methods" or "members" with: "methods/members and local functions".
We may have occasionally added local functions as part of other work. This issue tracks all potential locations.
I recall you're not such a big fan of them, so I thinks it's best for me to create individual PRs for the places they may make sense. Then you can accept/reject as you see fit.
bkoelman
changed the title
AV1500/AV1561: Consider to include local functions
Umbrella: Leftovers for local functions
May 7, 2018
Similar to methods, local functions should probably be constrained in their maximum number of parameters (AV1561) and maximum number of statements (AV1500). Tracked by #140.
Likewise, mentions in other rules may need to be expanded to include local functions. In most cases, it should be sufficient to replace "methods" or "members" with: "methods/members and local functions".
null
(AV1135) Updated AV1135 for local functions #149Don't include numbers in variables, parameters and type members (AV1704)Name a member, parameter or variable according to its meaning and not its type (AV1707)Async
orTaskAsync
(AV1755) Updated AV1755 for local functions #153Any()
to determine whether anIEnumerable<T>
is empty (AV1800) Updated AV1800 for local functions #154Avoid inline comments (AV2310) Updated AV2310 for local functions #155Additionally, we may want to provide guidance on when to (not) use local functions:
Discussed in #96 (comment):
Func
variables into local functions.yield
-based deferred execution methods:The text was updated successfully, but these errors were encountered: