Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Ryu0118
Copy link
Collaborator

@Ryu0118 Ryu0118 commented Aug 5, 2025

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:

let subdirectoryComponents: [String] = if header.dirname.hasPrefix(includeDir.path(percentEncoded: false)) {
header.dirname.dropFirst(includeDir.path(percentEncoded: false).count)
.split(separator: "/")
.map(String.init)
} else {
[]
}

Standardizing the fileURL resolves this issue by ensuring consistent path handling.

@Ryu0118 Ryu0118 requested review from giginet and ikesyo August 5, 2025 05:56
@Ryu0118 Ryu0118 force-pushed the fix-custom-module-path-and-sources branch from 09e450d to 033306c Compare August 5, 2025 07:43
Copy link
Owner

@giginet giginet left a 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
Copy link
Collaborator Author

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.

Copy link
Collaborator

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

image

Copy link
Owner

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?

Copy link
Collaborator Author

@Ryu0118 Ryu0118 Aug 12, 2025

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

@Ryu0118 Ryu0118 requested review from giginet and ikesyo August 12, 2025 04:10
.swiftlint.yml Outdated
warning: 400
identifier_name:
max_length:
warning: 45
Copy link
Collaborator

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

image

Co-authored-by: IKEDA Sho <[email protected]>
@Ryu0118 Ryu0118 requested a review from ikesyo August 12, 2025 05:21
@Ryu0118 Ryu0118 merged commit 79118d9 into giginet:main Aug 12, 2025
2 checks passed
@Ryu0118 Ryu0118 deleted the fix-custom-module-path-and-sources branch August 12, 2025 09:56
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

Successfully merging this pull request may close these issues.

3 participants