decko-commons/decko

View on GitHub
decko/lib/decko/mods_spec_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage

Use SCREAMING_SNAKE_CASE for constants.
Open

Decko::ModsSpecHelper = :needs_a_value_so_spring_loader_is_happy
Severity: Minor
Found in decko/lib/decko/mods_spec_helper.rb by rubocop

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

There are no issues that match your filters.

Category
Status