Code Inspection: Consecutive commas in array literal
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports a consecutive comma in an array literal. The skipped element accepts the undefined
value, but it could be done unintentionally, for example, when commas are at the end of one line and at the beginning of the next one.
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.