-
Notifications
You must be signed in to change notification settings - Fork 129
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
[MVP] Switching to a swift command line tool #1718
Conversation
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.
Great stuff Alex,
a few nitpicks from me, more like questions to think about rather than fixes.
I didn't review the diff part, assuming it's the same as in the previous PRs
Scripts/public-api-diff/Sources/Helpers/FileHandling/FileHandling+Convenience.swift
Outdated
Show resolved
Hide resolved
"Cartfile" | ||
] | ||
|
||
let fileExtensionIgnoreList: Set<String> = [ |
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.
Couldn't these two sets be combined?
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.
Yeah, not too happy with these lists either - would have to replace it with a regex - I added a TODO to tackle in another PR
let destinationFilePath = destinationDirectoryPath.appending("/\(fileName)") | ||
|
||
// Using shell here as it's faster than the FileManager | ||
shell.execute("cp -a \(sourceFilePath) \(destinationFilePath)") |
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.
Do we sanitize user input anywhere? I quickly scanned changes and didn't find it right away.
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.
No there is no explicit sanitization going on here but because of previous calls we know that the paths are valid file paths. Might want to revisit this decision though
11b29b7
✅ No changes detectedComparing Analyzed modules: Adyen, AdyenActions, AdyenCard, AdyenCashAppPay, AdyenComponents, AdyenDelegatedAuthentication, AdyenDropIn, AdyenEncryption, AdyenSession, AdyenSwiftUI, AdyenTwint, AdyenWeChatPay |
|
Summary
Output
Without public changes
With public changes (Shortened for the sake of showcasing)
TODO for a future PR