decko/lib/decko/mods_spec_helper.rb
Use SCREAMING_SNAKE_CASE for constants. Open
Open
Decko::ModsSpecHelper = :needs_a_value_so_spring_loader_is_happy
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks whether constant names are written using SCREAMINGSNAKECASE.
To avoid false positives, it ignores cases in which we cannot know for certain the type of value that would be assigned to a constant.
Example:
# bad
InchInCm = 2.54
INCHinCM = 2.54
Inch_In_Cm = 2.54
# good
INCH_IN_CM = 2.54