Skip to content

SwiftUI - specific rules #6250

@kvaDrug

Description

@kvaDrug

New Issue Checklist

Feature or Enhancement Proposal

I wish to have different rules for SwiftUI. For example:

  • attributes: allow to put @ViewBuilder on a separate line.
  • Longer closure_body_length.
  • file_types_order: SwiftUI #Preivew often requires a preview-only helper View, that I want to put below the main type.
  • and so on...

I guess I'm not the only one? Maybe there's already some way to implement SwiftUI-specific behavior?

Well, I have one idea to put special .swiftlint.yml to UI/, but it will also affect View Models...

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionTopics that cannot be categorized as bugs or enhancements yet. They require further discussions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions