# 使用 Homebrew 安装 wartremover

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wartremover
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:wartremover
- **软件包管理器:** Homebrew
- **版本:** 3.6.1
- **来源摘要:** Flexible Scala code linting tool
- **主页:** <https://www.wartremover.org/>
- **仓库:** <https://github.com/wartremover/wartremover>
- **最后更新:** 2026-07-01T10:37:53Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- wartremover (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.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


## 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
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
