-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Quiet new warnings from Xcode 13.3 #673
Conversation
Codecov Report
@@ Coverage Diff @@
## main #673 +/- ##
=======================================
Coverage 84.75% 84.75%
=======================================
Files 157 157
Lines 8987 8987
=======================================
Hits 7617 7617
Misses 1370 1370
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting the previous usage is now discouraged. It seems the CI does not pass because _
is considered an invalid character in an enum case. Maybe we can rename it to current
?
Ah thanks @fortmarek, I opened this and then promptly forgot to come back to check the CI checks. I've updated it to |
hmm, now it's failing for a new reason:
🤔 |
Maybe this was using a fork of https://github.com/norio-nomura/action-swiftlint that got deleted? @pepicrft was |
I am personally not aware why the fork was introduced. Maybe we can try with pointing to the original repository? |
I’ll give it a shot |
There we go! |
Thanks for the PR @hisaac 👏 |
Resolves #672
Short description 📝
Building the project with Xcode 13.3 produces some new annoying warnings related to the naming of one of the cases on the
XCWorkspaceDataElementLocationType
enum. See #672 for more details.Solution 📦
I renamed
case self(path)
tocase _self(path)
, which silences the warnings. Tests still run successfully as well.I tried using Xcode's suggestion of changing it to
XCWorkspaceDataElementLocationType.self(path)
, but then a new compiler error is thrown.I also tried adding backticks to the case name (
XCWorkspaceDataElementLocationType.
self(path)
, but then the same warning as above is thrown again.