Swiftpack.co - Package - fdiaz/SwiftInspector


codecov Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

SwiftInspector is a command line tool built on top of SwiftSyntax to help inspect usage of classes, protocols, properties, etc in a Swift codebase.


This project is currently under development and can have breaking API changes.


  • Swift 5.2


Run the following command:

$ git clone git@github.com:fdiaz/SwiftInspector.git
$ cd SwiftInspector
$ make install


If you want to contribute to this project, please take a look at our CONTRIBUTING guidelines. To generate and open the project in Xcode run:

$ make develop

Default branch

The default branch of this repository is main. Between the initial commit and 75bd9f4 , the default branch of this repository was master. See #38 for more details on why this change was made.




Stars: 3

Used By

Total: 0


Release version 0.7.0 - 2020-07-21 16:54:34

Add a way to return the conforming type when searching for type conformance https://github.com/fdiaz/SwiftInspector/pull/35

Release version 0.6.0 - 2020-04-07 16:22:31

  • Update to use Swift 5.2 https://github.com/fdiaz/SwiftInspector/pull/33

Release version 0.5.0 - 2020-04-06 16:01:43

  • Add type-location command https://github.com/fdiaz/SwiftInspector/pull/13
  • Improvements to the initializer command https://github.com/fdiaz/SwiftInspector/issues/20 https://github.com/fdiaz/SwiftInspector/issues/24

Release version 0.4.0 - 2020-03-31 19:00:16

  • Add typealias command https://github.com/fdiaz/SwiftInspector/pull/10
  • Add initializer command https://github.com/fdiaz/SwiftInspector/pull/15

Release version 0.3.1 - 2020-03-25 02:15:22

  • Fixes a bug in imports command that was not looking into subfolders with spaces in their name https://github.com/fdiaz/SwiftInspector/pull/6

Release version 0.2.0 - 2020-03-24 02:06:33

  • Rename singleton command to static-usage
  • Allow for multiple, comma separated, parameters in both the static-usage and type-conformance
  • Replace JSON output for a more idiomatic standard output

Release version 0.1.1 - 2020-03-24 02:05:44

  • Use JSON to output from commands

Release version 0.1.0 - 2020-03-24 02:05:11

Initial release with the following commands:

  • type-conformance
  • singleton

Release version 0.3.0 - 2020-03-24 02:03:01