Fui
==========
[![Gem Version](https://badge.fury.io/rb/fui.svg)](https://badge.fury.io/rb/fui)
[![Build Status](https://travis-ci.org/dblock/fui.svg)](https://travis-ci.org/dblock/fui)
Find unused Objective-C imports.
# Table of Contents
- [Usage](#usage)
- [Get Help](#get-help)
- [Find Unused Classes in the Current Directory](#find-unused-classes-in-the-current-directory)
- [Find Unused Classes in any Path](#find-unused-classes-in-any-path)
- [Skip Interface Builder (.xib) Files](#skip-interface-builder-xib-files)
- [Ignore Local Imports](#ignore-local-imports)
- [Ignore Global Imports](#ignore-global-imports)
- [Ignore a Path](#ignore-a-path)
- [Ignore Multiple Paths](#ignore-multiple-paths)
- [Delete All Unused Class Files with Prompt](#delete-all-unused-class-files-with-prompt)
- [Xcode Plugin](#xcode-plugin)
- [Contributing](#contributing)
- [Copyright and License](#copyright-and-license)
## Usage
```sh
gem install fui
```
### Get Help
```sh
fui help
```
### Find Unused Classes in the Current Directory
```sh
fui find
```
The `find` command lists all the files that contain unused imports and exits with the number of files found.
### Find Unused Classes in any Path
```sh
fui --path=~/source/project/Name find
```
### Skip Interface Builder (.xib) Files
Running `fui` with `-x` (or `--ignore-xib-files`) will, for example, mark `Foo.h` as unused when `Foo.xib` holds a reference to the `Foo` class and no other references to Foo.h exist.
```sh
fui -x --path=~/source/project/Name find
```
### Ignore Local Imports
Running `fui` with `-l` (or `--ignore-local-imports`) will, for example, mark `Foo.h` as unused when `Bar.h` contains a local (quotation syntax) import of `Foo.h` (eg. `#import Foo.h`).
```sh
fui -l --path=~/source/project/Name find
```
### Ignore Global Imports
Running `fui` with `-g` (or `--ignore-global-imports`) will, for example, mark `Foo.h` as unused when `Bar.h` contains a global (bracket syntax) import of `Foo.h` (eg. `#import <Framework/Foo.h>`).
```sh
fui -g --path=~/source/project/Name find
```
### Ignore a Path
Running `fui` with `-i` (or `--ignore-path`) will, for example, ignore a `Pods` folder when searching for headers or referencing files.
```sh
fui --path=~/source/project/Name --ignore-path=Pods find
```
### Ignore Multiple Paths
Running `fui` with `-i` (or `--ignore-path`) can ignore multiple folders when searching for headers or referencing files.
```sh
fui --path=~/source/project/Name --ignore-path=Pods --ignore-path=Libraries find
```
### Delete All Unused Class Files with Prompt
```sh
fui --path=~/source/project/Name delete --perform --prompt
```
## Xcode Plugin
Use [xcfui](https://github.com/jcavar/xcfui) for integration with Xcode.
## Contributing
There're [a few feature requests and known issues](https://github.com/dblock/fui/issues). Please contribute! See [CONTRIBUTING](CONTRIBUTING.md).
## Copyright and License
Copyright (c) 2014-2018, Daniel Doubrovkine, [Artsy](http://artsy.github.io), based on code by [Dustin Barker](https://github.com/dstnbrkr).
This project is licensed under the [MIT License](LICENSE.md).
没有合适的资源?快使用搜索试试~ 我知道了~
Find unused Objective-C imports..zip
共109个文件
h:25个
m:25个
rb:11个
需积分: 5 0 下载量 25 浏览量
2023-12-31
10:22:05
上传
评论
收藏 54KB ZIP 举报
温馨提示
Find unused Objective-C imports.
资源推荐
资源详情
资源评论
收起资源包目录
Find unused Objective-C imports..zip (109个子文件)
Dangerfile 26B
fui 3KB
Gemfile 160B
fui.gemspec 599B
.gitignore 36B
FUIAppDelegate.h 295B
FUIAppDelegate.h 295B
FUISubclassOfUIViewUsedInANib.h 247B
FUISubclassOfUIViewUsedInANib.h 247B
FUIViewController.h 233B
FUIViewController.h 233B
FUISubclassOfUIView.h 227B
FUISubclassOfUIView.h 227B
BridgingHeaderSpec-Bridging-Header.h 128B
used_class.h 107B
used_class.h 107B
used_class.h 107B
used_class.h 107B
used_class.h 107B
used_class.h 107B
another_ignored_class.h 102B
ignored_class.h 64B
unused_class.h 62B
unused_class.h 62B
unused_class.h 62B
unused_class.h 62B
unused_class.h 62B
unused_class.h 62B
header.h 33B
header.h 23B
Contents.json 442B
Contents.json 442B
Contents.json 333B
Contents.json 333B
FUIAppDelegate.m 2KB
FUIAppDelegate.m 2KB
FUINibTests.m 645B
FUINibTests.m 645B
FUISubclassOfUIViewUsedInANib.m 604B
FUISubclassOfUIViewUsedInANib.m 604B
FUISubclassOfUIView.m 574B
FUISubclassOfUIView.m 574B
FUIViewController.m 517B
FUIViewController.m 517B
main.m 355B
main.m 355B
another_ignored_class.m 118B
used_class.m 115B
used_class.m 115B
used_class.m 115B
used_class.m 115B
used_class.m 115B
ignored_class.m 96B
unused_class.m 93B
unused_class.m 93B
unused_class.m 93B
unused_class.m 93B
unused_class.m 93B
main.m 43B
README.md 3KB
CHANGELOG.md 2KB
RELEASING.md 1KB
LICENSE.md 1KB
CONTRIBUTING.md 217B
used_class.mm 117B
unused_class.mm 94B
main.mm 43B
project.pbxproj 21KB
project.pbxproj 21KB
project.pbxproj 11KB
FUINib-Prefix.pch 344B
FUINib-Prefix.pch 344B
precompiled.pch 23B
FUINib-Info.plist 1KB
FUINib-Info.plist 1KB
FUINibTests-Info.plist 685B
FUINibTests-Info.plist 685B
Rakefile 316B
finder_spec.rb 7KB
finder.rb 3KB
fui_spec.rb 3KB
project_spec.rb 1KB
project.rb 882B
header_spec.rb 585B
header.rb 370B
spec_helper.rb 203B
fui.rb 121B
version_spec.rb 112B
version.rb 42B
.rspec 31B
Main.storyboard 2KB
Main.storyboard 2KB
InfoPlist.strings 45B
InfoPlist.strings 45B
InfoPlist.strings 45B
InfoPlist.strings 45B
FUINib.xccheckout 1KB
FUINib.xccheckout 1KB
FUINib.xcscheme 3KB
FUINib.xcscheme 3KB
共 109 条
- 1
- 2
资源评论
暮苍梧~
- 粉丝: 41
- 资源: 258
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功