rspec/rules/S3562/description.adoc

2 lines
223 B
Plaintext
Raw Normal View History

2020-12-23 14:59:06 +01:00
For completeness, a ``switch`` over the values of an ``enum`` must either address each value in the ``enum`` or contain a ``default`` case. ``switch`` statements that are not over ``enum`` must end with a ``default`` case.