Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: Bump rubocop-discourse to 3.8.0 #643

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

tgxworld
Copy link
Contributor

This commit resolves all Lint/OrAssignmentToConstant cop violations.

This commit resolves all `Lint/OrAssignmentToConstant` cop violations.
Comment on lines -5 to -17
TIMEZONES_DEFINITIONS ||=
"https://raw.githubusercontent.com/moment/moment-timezone/develop/data/meta/latest.json"
UNUSED_REGIONS ||= %w[
ecbtarget
federalreserve
federalreservebanks
fedex
nerc
unitednations
ups
nyse
]
HOLIDAYS_COUNTRY_OVERRIDES ||= { "gr" => "el" }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CvX Random fact that I discovered, rake files are loaded multiple times by rake for some reason so defining a global constant in a rake file will cause the constant redefinition warning to be raised.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I keep rediscovering that every ~2 years 😄

@tgxworld tgxworld merged commit a6d9407 into main Nov 14, 2024
6 checks passed
@tgxworld tgxworld deleted the bump_rubocop_discourse branch November 14, 2024 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants