Skip to content

Lint analytics event exceptions on actual name#9539

Merged
aduth merged 2 commits intomainfrom
aduth-legacy-events-actual-name
Nov 3, 2023
Merged

Lint analytics event exceptions on actual name#9539
aduth merged 2 commits intomainfrom
aduth-legacy-events-actual-name

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Nov 3, 2023

🛠 Summary of changes

As a slight alteration to #9480, exempts legacy methods by their actual names, not the expected name.

This was prompted by a proposed change which would have been permitted under the previous logic, but such renames are good opportunities to adopt the new naming convention.

📜 Testing Plan

  1. Edit app/services/analytics_events.rb to rename any string event name
  2. Run rubocop app/services/analytics_events.rb
  3. Observe error

changelog: Internal, Automated Testing, Improve developer experience of analytics event name linter
@aduth aduth requested a review from zachmargolis November 3, 2023 19:28
@aduth aduth merged commit c6d5ec3 into main Nov 3, 2023
@aduth aduth deleted the aduth-legacy-events-actual-name branch November 3, 2023 20:25
@matthinz matthinz mentioned this pull request Nov 6, 2023
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.

2 participants