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
[linter] Prepare to rename lint codes to camelCase.
In https://dart-review.googlesource.com/c/sdk/+/444921, which renames
analyzer diagnostics from `SCREAMING_CAPS` to `camelCase`, I failed to
notice that the lint codes use `lower_snake_case`, so they were not
renamed.
This change updates the `rename_error_constants.dart` script so that
it will also rename diagnostics from `lower_snake_case` form. It also
adds a `_useLowerCamelCaseNames` boolean to the linter's error code
generator, so after the updated script is run, the generated code will
match up with the renamed lint error codes.
Change-Id: I6a6a6964d32a17a605947feb4dc07a0677b77191
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/445111
Reviewed-by: Konstantin Shcheglov <[email protected]>
Reviewed-by: Samuel Rawlins <[email protected]>
Commit-Queue: Paul Berry <[email protected]>
0 commit comments