تخطَّ إلى المحتوى

Unlabeled Boolean Argument (ARCH9185)

هذا المحتوى غير متوفر بلغتك بعد.

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.

render(user, true, false)
render(user, compact: true, showAvatar: false)

Keep the labels, or replace the flag with an enum.