We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { switch indexPath.section { // Void Function in Ternary Violation: Using ternary to call Void functions should be avoided (void_function_in_ternary) case 0: isEditing ? CGSize(width: 150, height: 20) : CGSize(width: 100, height: 20) default: .zero } } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { if indexPath.section == 0 { // Void Function in Ternary Violation: Using ternary to call Void functions should be avoided (void_function_in_ternary) isEditing ? CGSize(width: 150, height: 20) : CGSize(width: 100, height: 20) } else { .zero } } ### Environment * SwiftLint version: 0.55.1 * Installation method used: Homebrew
The text was updated successfully, but these errors were encountered:
No branches or pull requests
New Issue Checklist
Describe the bug
The text was updated successfully, but these errors were encountered: