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
{{ message }}
Repository navigation
no_leading_underscores_for_local_identifiers doesn't complain about local functions #58715
Complaining here would also seem to be in line with "Effective Dart" [1] (emphasize mine):
There is no concept of “private” for local variables, parameters, local functions, or library prefixes. When one of those has a name that starts with an underscore, it sends a confusing signal to the reader. To avoid that, don’t use leading underscores in those names.
For extra context, I noticed this while reviewing flutter/flutter#102419. The tests there use local functions with leading underscores and our analysis check is green with the no_leading_underscores_for_local_identifiers enabled.
Activity
goderbauer commentedon Apr 25, 2022
For extra context, I noticed this while reviewing flutter/flutter#102419. The tests there use local functions with leading underscores and our analysis check is green with the
no_leading_underscores_for_local_identifiersenabled.pq commentedon Apr 25, 2022
100% agreed. This one was just an oversight. Fixing now.
Thanks!