realm/SwiftLint

Spaces in function arguments

Aperta

#5224 aperta il 15 set 2023

 (1 commento) (0 reazioni) (1 assegnatario)Swift (2295 fork)batch import
good first issuerule-request

Metriche repository

Star
 (19.570 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

I would like to remove spaces before the first function argument and after the last function argument. The rule must be opt-in. Need good style code

Bad

makeGenerator(❗️ style ❗️)
makeGenerator(❗️ style)
makeGenerator(style ❗️)
makeGenerator(❗️ offset: 0, limit: 0)
makeGenerator(offset: 0, limit: 0 ❗️)

Good

makeGenerator(style)
makeGenerator(style)
makeGenerator(style)
makeGenerator(offset: 0, limit: 0)
makeGenerator(offset: 0, limit: 0)

Guida contributor