-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix identifier_name check enum-element-with-associated-value error #2272
Conversation
@gnou Even if you are using Swift 4.1, it's actually reported as 4.2 by SwiftLint because that's the compiler version. Have you tried compiling master and running against your project? |
@marcelofabri I did, this works for my project. |
Generated by 🚫 Danger |
Codecov Report
@@ Coverage Diff @@
## master #2272 +/- ##
==========================================
- Coverage 92.11% 92.11% -0.01%
==========================================
Files 286 286
Lines 14533 14532 -1
==========================================
- Hits 13387 13386 -1
Misses 1146 1146
Continue to review full report at Codecov.
|
So here's what happened: |
This was an issue with SourceKitten that should be fixed on master. Can you please double check?
I agree, but at the same time, I didn't want to penalize users on Swift < 4.2 with a more expensive operation. Also, since Swift 4.2 is still in beta, the behavior might change. |
Closing this for now. |
#2255 was the fix of #2231 , but in this(#2255) fix, @marcelofabri set a Swift lang version check, only check >4.1, which makes it ineffectual if you're using Xcode 10 & Swift 4.1, I removed that constraint in my pull request.