Skip to content

Add rule: multiline_arguments_threshold #42

@kj6dev

Description

@kj6dev

Overview

Functions with 4+ parameters should have each parameter on its own line.

Rule Identifier

multiline_arguments_threshold

Rationale

Improves readability and maintainability.

Example

// ❌ Hard to read
func configure(name: String, age: Int, address: String, phone: String) { }

// ✅ Clear and scannable
func configure(
    name: String,
    age: Int,
    address: String,
    phone: String
) { }

Notes

SwiftFormat may already handle this - verify before implementing to avoid duplication.

Priority

Low

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions