Project

depcheck

0.11
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Dependency analyzer tool for Swift projects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 10.4
~> 3.4

Runtime

~> 0.6
 Project Readme

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.

Installation

Add this line to your application's Gemfile:

gem 'depcheck'

And then execute:

$ bundle

Or install the gem:

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:

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

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

$ 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 if you find bugs or have questions.

Author

Wojtek Lukaszuk @wojteklu

License

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