# 使用 Homebrew, MacPorts 安装 tailor

查看 tailor 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:tailor
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tailor
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tailor
```

  证据: MacPorts ports tree: devel/tailor/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:tailor
- **软件包管理器:** Homebrew
- **版本:** 0.12.0
- **来源摘要:** Cross-platform static analyzer and linter for Swift
- **主页:** <https://sleekbyte.github.io/tailor/>
- **仓库:** <https://github.com/sleekbyte/tailor>
- **最后更新:** 2026-06-22T14:06:26-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tailor (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.12.0
## 项目历史与用法

Tailor is a Swift static analyzer and linter packaged as a cross-platform CLI. It belongs to the early Swift tooling wave, when developers wanted package-manager-installable style checks for Swift projects before the ecosystem settled around later tools.

### 项目历史

The public repository was created in May 2015. The README describes Tailor as a cross-platform static analyzer and linter for Swift, implemented with ANTLR parsing, supporting Mac OS X shell use, Xcode integration, Linux, and Windows. It documents Homebrew installation, release archives, and CI snippets.

### 采用历史

Tailor was distributed through Homebrew and MacPorts according to the input package facts. GitHub releases show active feature work around Swift grammar updates, Code Climate output, `.tailor.yml` configuration, and Xcode integration during the Swift 2 and Swift 3 transition period.

### 使用方式

Users run `tailor` over Swift files or directories, configure rule selection and output through CLI flags or `.tailor.yml`, and can add it to an Xcode build phase. The wiki documents `.tailor.yml` for include/exclude lists, rule enablement, output format, and color settings.

### 为什么软件包爱好者会关心

Package nerds care about Tailor because it shows how early Swift static analysis escaped Xcode and became a package-manager-installed CLI. Its release history also shows the maintenance burden of grammar-driven language tooling: Swift grammar changes required parser updates, while CI and Code Climate support made the tool fit non-Apple workflows.

### 时间线

- 2015: Public GitHub repository created.
- 2016: Releases added Code Climate output and `.tailor.yml` configuration options.
- 2016: Tailor 0.11.0 updated grammar support for Swift 3.0.
- 2017: Tailor 0.12.0 updated grammar support for Swift 3.0.1.

### Related projects

- Tailor relates to SwiftFormat, SwiftLint, Xcode build phases, Code Climate, ANTLR, Homebrew, and MacPorts.

### 来源

- <https://api.github.com/repos/sleekbyte/tailor>
- <https://github.com/sleekbyte/tailor>
- <https://github.com/sleekbyte/tailor/releases>
- <https://github.com/sleekbyte/tailor/wiki>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .tailor.yml
## 其他软件包管理器记录

- MacPorts - tailor: normalized package name match | MacPorts ports tree: devel/tailor/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/tailor.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tailor.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
