Skip to content

ssnielsen/SwinjectContainerAnalyzer

Repository files navigation

SwinjectContainerAnalyzer

Small command line tool to statically analyze your Swinject container usage.

Basically it tries to ensure that the types you try to resolve are also registered somewhere.

Example warning:

Example warning

Usage

SwinjectContainerAnalyzer /Path/To/Code --strict

The --strict flag will result in Xcode to fail the build. Leave it out if you only want the comments.

To me it makes the most sense to have it as a custom build phase in Xcode.

Installation

  1. Download latest release
  2. Put in desired location
  3. Add build phase in Xcode (make sure that SwinjectContainerAnalyzer is executable)
  4. Build your code

About

Small tool to statically analyze SwinjectContainer usage

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages