目录
目录README.md

📊 xcstats(1)

CircleCI Language: Swift 4.2

xcstats is a command line tool for analyzing Xcode project and prints statistics of source codes like rake stats.

asciicast

This project leverages SwiftSyntax to generate Swift code statistics that describes how many Swift types (class, struct, enum, etc.) are declared on your project.


System Requirements

  • Xcode 10.1

Installation

Using homebrew:

$ brew tap horimislime/taproom
$ brew install xcstats

You can also download portable executable from releases and install it manually.


Usage

Under your Xcode project root, just hit xcstats .

$ cd /path/to/your/project/root
$ xcstats

Development

Generate .xcodeproj with make xcodeproj and open it in Xcode 10.1 or later.


TODOs

This project is still under early development. Missing features are:

  • Specifying Xcode project path other than current working directory
  • Detailed Objective-C code statistics (currently xcstats only prints lines/LOC. I need SwiftSyntax for ObjC! 😄)
  • And some other useful statistics (number of tests, assets, etc.)

License

MIT

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号