Skip to content

Rule Request: Add Class Prefix Rule #5714

@inotetw

Description

@inotetw

New Issue Checklist

  • Updated SwiftLint to the latest version
    0.55.1

New rule request

Since XCode has a class prefix setting option, I want a rule to check if public or internal class, enum, struct, and protocol have the prefix. However, it should be configurable to not require for inner class, inner enum, and inner struct to have the prefix. For example, if the prefix is CTA, the name of the first-level class must start with CTA, like CTADataModel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    rule-requestRequests for a new rules.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions