Sha256: e3d452013c4fbe209f282d652c20daf4b0079ae6eacddbf631a58e5f9ccdc708

Contents?: true

Size: 1.66 KB

Versions: 2

Compression:

Stored size: 1.66 KB

Contents

# Depcheck

`Depcheck` is a dependency analyzer tool for Swift projects. `Depcheck` reports dependencies per class, allowing you to easily detect classes that have too many dependencies. `Depcheck` can also report how many dependants a class have. Therefore you can spot the most used and unused classes. Additionaly you can generate *dependency graph* of your project.

<img src="https://github.com/wojteklu/depcheck/blob/master/example/analyze.png?raw=true" width="600px">

<img src="https://github.com/wojteklu/depcheck/blob/master/example/graph.png?raw=true" height="360px">

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'depcheck'
```

And then execute:

```sh
$ bundle
```

Or install the gem:

```sh
gem install depcheck
```

## Usage

`Analyze` command reports dependencies per classes. `Usage` command reports how many dependants a class have. `Graph` command generates dependency graph.

Build your project using Debug configuration, and then run:

```sh
$ depcheck analyze --project path/to/project.xcodeproj

```

If you use a workspace in Xcode you need to specify it:

```sh
$ depcheck analyze --workspace path/to/workspace.xcworkspace --scheme YourXcodeSchemeName
```

## Contributing

I’d love to see your ideas for improving this library! The best way to contribute is by submitting a pull request. I’ll do my best to respond to your patch as soon as possible. You can also submit a [new GitHub issue](https://github.com/wojteklu/depcheck/issues/new) if you find bugs or have questions.

## Author

Wojtek Lukaszuk [@wojteklu](http://twitter.com/wojteklu)

## License

This project is licensed under the terms of the MIT license. See the LICENSE file.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
depcheck-0.5.0 README.md
depcheck-0.4.0 README.md