# 使用 Homebrew 安装 wartremover

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

## 安装

```sh
sudo av install brew:wartremover
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wartremover
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:wartremover
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/wartremover>
- **版本:** 3.6.1
- **来源摘要:** Flexible Scala code linting tool
- **主页:** <https://www.wartremover.org/>
- **仓库:** <https://github.com/wartremover/wartremover>
- **上游文档:** <https://www.wartremover.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/wartremover/wartremover/archive/refs/tags/v3.6.1.tar.gz>
- **最后更新:** 2026-07-01T10:37:53Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- wartremover (cli)
- wartremover (别名)

## 依赖

- openjdk

## 构建依赖

- sbt

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.6.1
- 管理器更新时间: 2026-07-01
- 本地数据: OK
- 上游仓库: https://github.com/wartremover/wartremover
- 检测到的最新版本: v3.6.1 (当前)
## 项目历史与用法

WartRemover is a Scala linting tool focused on compile-time detection of language features and idioms that a project wants to forbid. Its package-nerd identity is unusually direct: individual checks are called "warts", and users opt into sets of warts as errors or warnings in sbt, scalac, or the standalone command-line tool.

### 项目历史

The public GitHub repository was created on January 5, 2013. Brian McKenna's 2013 write-up for WartRemover 0.4 described a rewrite from a linter for features he considered bad into a more flexible framework for lint rules over Scala compiler trees, with wrappers for macros, the command line, and the compiler plugin.

The project later standardized around the wartremover organization and the wartremover.org documentation site. Current documentation presents the sbt plugin as the normal entry point, while still documenting use as a command-line tool, a manually configured compiler plugin, and a macro-derived checker.

### 采用历史

WartRemover occupies the compiler-plugin side of the Scala linting ecosystem. Scala Center's Scalafix documentation compares it with Scalafix, Scalastyle, and IntelliJ inspections, noting that WartRemover has more linter rules out of the box than Scalafix but does not automatically fix code.

### 使用方式

Typical use is to add the sbt plugin and then configure `wartremoverErrors` or `wartremoverWarnings` in `build.sbt`. Projects commonly enable a stable or custom subset of warts, suppress checks with annotations for exceptional cases, or exclude generated source directories.

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

For package managers, WartRemover represents the Scala compiler-plugin era of code-quality tooling: it is not just a formatter or external scanner, but a package that participates in compilation and can make disallowed constructs fail the build.

### 时间线

- 2013-01-05: Public GitHub repository created.
- 2013: WartRemover 0.4 write-up describes the flexible rule/traverser design.
- 2020s: Documentation continues to support sbt, command-line, manual compiler-plugin, and macro-based usage.

### Related projects

- Scalafix, Scalastyle, and IntelliJ Scala inspections cover adjacent Scala linting and refactoring workflows, while WartRemover's distinctive niche is compiler-driven configurable warts.

### 来源

- <https://api.github.com/repos/wartremover/wartremover>
- <https://brianmckenna.org/blog/wartremover_point_four>
- <https://scalacenter.github.io/scalafix/docs/users/related-projects.html>
- <https://www.wartremover.org/doc/install-setup.html>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** wartremover
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [sbt](https://pkg.so/zh-hans/brew/sbt/) - Build dependency declared by Homebrew.
- [flake8](https://pkg.so/zh-hans/brew/flake8/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [checkstyle](https://pkg.so/zh-hans/brew/checkstyle/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [detekt](https://pkg.so/zh-hans/brew/detekt/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [hlint](https://pkg.so/zh-hans/brew/hlint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [vulture](https://pkg.so/zh-hans/brew/vulture/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [credo](https://pkg.so/zh-hans/brew/credo/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [scalastyle](https://pkg.so/zh-hans/brew/scalastyle/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, scala, static-analysis.
- [swiftlint](https://pkg.so/zh-hans/brew/swiftlint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [pmd](https://pkg.so/zh-hans/brew/pmd/) - Local package facts share a topical domain. Shared terms: analysis, cli, code, code-quality, developer.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
