p-x9 / swift-weak-self-check

🧹 A CLI tool for `[weak self]` detection by `swift-syntax`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swift-weak-self-check

A CLI tool for [weak self] detection by swift-syntax

Github issues Github forks Github stars Github top language

Usage

OVERVIEW: Check whether `self` is captured by weak reference in Closure.

USAGE: weak-self-check [<path>] [--report-type <report-type>] [--silent] [--config <config>] [--index-store-path <index-store-path>]

ARGUMENTS:
  <path>                  Path

OPTIONS:
  --report-type <report-type>
                          Detected as `error` or `warning` (default: error)
  --silent                Do not output logs
  --config <config>       Config (default: .swift-weak-self-check.yml)
  --index-store-path <index-store-path>
                          Path for IndexStore
  -h, --help              Show help information.

License

swift-weak-self-check is released under the MIT License. See LICENSE

About

🧹 A CLI tool for `[weak self]` detection by `swift-syntax`

License:MIT License


Languages

Language:Swift 100.0%