Skip to content
New issue

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

Add support for lowerCamelCase enum cases #654

Closed
bmunge opened this issue May 5, 2016 · 1 comment
Closed

Add support for lowerCamelCase enum cases #654

bmunge opened this issue May 5, 2016 · 1 comment

Comments

@bmunge
Copy link

bmunge commented May 5, 2016

The accepted Swift evolution guideline for Swift 3.0 standardizes lowerCamelCase enum values.
Source

Unless I'm missing something, the current type_name rule does not allow a way to ignore the uppercase requirement for enum cases. I think support needs to be added to the type_name rule to exclude enum cases from the capitalization requirement, or from the rule entirely.

@jpsim
Copy link
Collaborator

jpsim commented Jun 8, 2016

as of #660, we allow lowercase names for enum cases.

@jpsim jpsim closed this as completed Jun 8, 2016
NachoSoto added a commit to NachoSoto/SwiftLint that referenced this issue Jan 4, 2017
…ase in Swift 3

To my surprise, the `type_name` rule is not currently validating this. I've found some issues referring to this (realm#655, realm#654, realm#663, and the change in realm#660),
but it's not clear to me whether not validating this was on purpose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants