Unlabeled Boolean Argument (ARCH9185)
Esta página aún no está disponible en tu idioma.
Key swift.quality.unlabeled-boolean-argument · Severity info · Category quality
Flags true / false literals passed without a label to calls with two or more arguments. A setX(_:) base name already says what the flag is.
Incorrect
Section titled “Incorrect”render(user, true, false)Correct
Section titled “Correct”render(user, compact: true, showAvatar: false)Keep the labels, or replace the flag with an enum.