swift-scripts
swift-scripts copied to clipboard
Some useful scripts for swift developers
I have the following code: ``` /// When the URLSessionTask is complete the validateCompletion() function will return one of these values /// to indicate to APIDispatcher how it should proceed...
In SwiftUI you'll use files named something like OnboardingView_Previews using the PreviewProvider-protocol to create previews. Unused.rb reports them as unused, which is somewhat correct, but they are used by the...
The fix of https://github.com/PaulTaykalo/swift-scripts/pull/14 replace lines with tail comment with empty line. I made patch to remove only tail comment from line. Example: definition `used` has a tail comment. Original...
Here's an example of a function which exists as a cocoa-style value observer. It is hooked up, runs at runtime, and the code will not compile without it. Yet, `unused.rb`...
e.g: class A { func method1() { } } class B { func method1() { } } expect that print all of two methods but not
Great lib! Would suggest to distribute it via Cocoapods. Thanks @PaulTaykalo
example: ``` /*func saveButtonDoen(sender:UIButton) { !===== } ```
Maybe the script can have a mode for scanning a framework VS an app, because for many of the properties and functions of a framework class whose access modifiers are...