SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

Rule Request: Add Class Prefix Rule

Open inotetw opened this issue 6 months ago • 0 comments

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.

inotetw avatar Jul 30 '24 04:07 inotetw