-
Notifications
You must be signed in to change notification settings - Fork 35
Fix issue where copyHeaderKeepingStructure doesn't work correctly under certain conditions #235
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 issue where copyHeaderKeepingStructure doesn't work correctly under certain conditions #235
Conversation
09e450d to
033306c
Compare
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.
Thank you for adding the tests!
.swiftlint.yml
Outdated
| warning: 400 | ||
| identifier_name: | ||
| max_length: | ||
| warning: 45 |
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.
This change is due to the identifier "clangPackageWithRelativePublicHeadersPath" exceeding the maximum allowed length. Its length is 42 characters.
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.
Default value of this is 40. The modified value is still lower than the default error value so should be okay.
https://realm.github.io/SwiftLint/identifier_name.html
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.
Could you update https://github.com/giginet/Scipio/blob/main/Tests/.swiftlint.yml instead for test targets?
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.
I have moved the rule to Tests/.swiftlint.yml in 8e95b49
…ge to FrameworkModuleMapGeneratorTests
.swiftlint.yml
Outdated
| warning: 400 | ||
| identifier_name: | ||
| max_length: | ||
| warning: 45 |
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.
Default value of this is 40. The modified value is still lower than the default error value so should be okay.
https://realm.github.io/SwiftLint/identifier_name.html
Co-authored-by: IKEDA Sho <[email protected]>
When includeDir contained components like "." or "..", the path was previously used without being standardized.
This caused incorrect behavior in the logic that extracts subdirectories, such as this line:
Scipio/Sources/ScipioKit/Producer/PIF/FrameworkBundleAssembler.swift
Lines 103 to 109 in 07c313d
Standardizing the fileURL resolves this issue by ensuring consistent path handling.