Can we enforce case statements ending in a : instead of a ;

Created on 13 November 2024, 21 days ago

Problem/Motivation

These are both valid:
case 'test';
case 'test1':

Should we enforce :
See here: πŸ“Œ Inconsistent switch case syntax Downport

Steps to reproduce

N/A

Proposed resolution

Add rule to enforce :

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ“Œ Task
Status

Active

Version

8.3

Component

Coder Sniffer

Created by

πŸ‡ΊπŸ‡ΈUnited States nicxvan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024