fus icon indicating copy to clipboard operation
fus copied to clipboard

Find unused Swift classes

Results 11 fus issues
Sort by recently updated
recently updated
newest added

I installed _fus_ using `sudo gem install fus` and tried running it in the root of my project but got the following error message: ``` $ fus find /Library/Ruby/Gems/2.3.0/gems/fus-0.0.3/lib/fus/swift_class.rb:26:in `match':...

```swift $ fus list | wc -l 88 $ find . -type f -name "*.swift" | wc -l 194 ```

* Type used as generic type parameter ``` class AClass { ... } class BClass { var t: T? } class CClass: BClass { ... } ``` -> `AClass` is...

Run the project error, How to solve? The following is the error message: Uncaught exception: cannot load such file -- fus /Users/apple/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in `require' /Users/apple/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in `require' /Users/apple/Desktop/APPTest/RubyTest/main.rb:3:in `' /Users/apple/.rvm/gems/ruby-2.3.0/bin/rdebug-ide:23:in `load' /Users/apple/.rvm/gems/ruby-2.3.0/bin/rdebug-ide:23:in...

How are you to find the path of the useless swift class how to write

This is an example ``` class UnusedClass { // only used here func doSomeThing() -> UnusedClass { return UnusedClass() } } ```

good first issue

Is it possible to specify multiple paths?

enhancement
good first issue

Thank you for your tool! Unfortunately I have received this error after launching `fus find` in root directory of my project. ``` /Library/Ruby/Gems/2.3.0/gems/fus-0.0.3/lib/fus/swift_class.rb:26:in `match': invalid byte sequence in UTF-8 (ArgumentError)...

Example swift file (that compiles without warnings or errors): ```swift import Foundation class NormalClass { } class GenericClass { } // class CommentedOut {} protocol MyProtocol {} // class is...

Hello, Great tool loved it 👍 Is there any way to find out unused methods? if not, this may be a great feature. Because AFAIS xcode is not reporting warning...

help wanted