Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Latest commit

 

History

History
11 lines (9 loc) · 378 Bytes

max-switch-cases.md

File metadata and controls

11 lines (9 loc) · 378 Bytes

max-switch-cases

When switch statements have large sets of case clauses, it is usually an attempt to map two sets of data. A real map structure would be more readable and maintainable, and should be used instead.

Configuration

The maximum authorized number of case can be provided. Default is 30.

"max-switch-cases": true
"max-switch-cases": [true, 20]