The bare minimum analyzer for Swift projects.
- For each file, count file length,
struct
,class
, andenum
- For the entire project, count
struct
,class
, andenum
- And show them in a web UI✨
- A little bit of D3 use to render a pie chart
$ cargo run -- -p path_to_project_root
- I was interested in objectively comparing multiple Swift projects because I've made a lot of iOS apps from scratch during my career.
- I picked up Rust here only because I wanted to learn the language.
- During this development, I realized that using SwiftSyntax was more suitable for in-depth analysis using Abstract Syntax Tree. Therefore, I made swift-dependency-analyzer using SwiftSyntax.