eygraber
04/24/2023, 4:21 AMBracesOnWhenStatements
with the following config:
BracesOnWhenStatements:
active: true
singleLine: 'necessary'
multiLine: 'necessary'
If I have a when
with a clause that does no handling, I typically use {}
because I like how it looks vs Unit
(depending on the use case), but BracesOnWhenStatements
reports that as a violation. Is that working as intended, or should the case of a clause with no handling be an exception?Brais Gabin
04/24/2023, 7:07 AMeygraber
04/24/2023, 5:36 PM