Skip to content

Rename camelCase methods, parameters and variables to snake_case - #49

Merged
mboremski merged 1 commit into
xmera-circle:developfrom
mboremski:fix/camelcase-naming
Aug 27, 2026
Merged

Rename camelCase methods, parameters and variables to snake_case#49
mboremski merged 1 commit into
xmera-circle:developfrom
mboremski:fix/camelcase-naming

Conversation

@mboremski

@mboremski mboremski commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Fixes #4

  • sanitizeDateParameter -> sanitize_date_parameter (WorkloadsController)
  • clearCache -> clear_cache (WlUserVacation, WlNationalHoliday)
  • usersToShow/selectedUsers/groupsToShow/selectedGroups -> snake_case (WorkloadFiltersHelper)

All of them are internal: the two model methods are private callbacks, the controller method is private, and the helper is called positionally from _filters.erb. No public API changes.

The three Naming/* entries are removed from .rubocop_todo.yml. Note that Naming/MethodParameterName is a minimum-length cop, not a style cop -- its four recorded offences do not match the current parameter names and look stale. Rubocop is in no Gemfile and does not run in CI, so this could not be verified here; if it still fires, rubocop --auto-gen-config regenerates the file.

Fixes xmera-circle#4

* `sanitizeDateParameter` -> `sanitize_date_parameter` (WorkloadsController)
* `clearCache` -> `clear_cache` (WlUserVacation, WlNationalHoliday)
* `usersToShow`/`selectedUsers`/`groupsToShow`/`selectedGroups` ->
  snake_case (WorkloadFiltersHelper)

All of them are internal: the two model methods are private callbacks, the
controller method is private, and the helper is called positionally from
`_filters.erb`. No public API changes.

The three `Naming/*` entries are removed from .rubocop_todo.yml. Note that
`Naming/MethodParameterName` is a minimum-length cop, not a style cop --
its four recorded offences do not match the current parameter names and
look stale. Rubocop is in no Gemfile and does not run in CI, so this could
not be verified here; if it still fires, `rubocop --auto-gen-config`
regenerates the file.
@mboremski mboremski self-assigned this Aug 27, 2026
@mboremski
mboremski merged commit ed5a397 into xmera-circle:develop Aug 27, 2026
3 checks passed
@mboremski
mboremski deleted the fix/camelcase-naming branch August 27, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant