# 使用 Homebrew, Nix, pacman 安装 dscanner

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

## 安装

```sh
sudo av install brew:dscanner
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dscanner
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dscanner
```

  证据: nixpkgs package indexes: pkgs/by-name/ds/dscanner/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S dscanner
```

  证据: Arch Linux sync databases: dscanner from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:dscanner
- **软件包管理器:** Homebrew
- **版本:** 0.15.2
- **来源摘要:** Analyses e.g. the style and syntax of D code
- **主页:** <https://github.com/dlang-community/D-Scanner>
- **仓库:** <https://github.com/dlang-community/D-Scanner>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dscanner (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

D-Scanner is a command-line analysis tool for D source code. It sits in the D language tooling layer as a linter, syntax/style checker, import/token helper, and machine-readable reporting tool for editors and CI.

### 项目历史

The project is maintained under the dlang-community organization and is documented as a source-code analysis tool for D. Its README describes native builds with D compilers, DUB-based installation, Docker usage, linting, autofix support, custom error formats, and GitHub Actions output.

### 采用历史

D-Scanner's adoption is largely within the D ecosystem rather than general-purpose developer tooling. Its README notes that many D editors already ship with D-Scanner integration, while package entries in Homebrew, Nix, Arch, and DUB make it available through both system and language package workflows.

### 使用方式

Typical usage includes `dscanner lint source/` for human-readable diagnostics, `dscanner fix source/` for interactive fixes, `--report` or custom formats for tool integration, and `dscanner.ini` to enable or disable diagnostics.

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

D-Scanner matters to package maintainers because language tooling often needs to be installed outside the language package manager for editor and CI integration. It is a small example of how ecosystem-specific linters become system packages when they need a stable executable on PATH.

### 时间线

- 2010s: D-Scanner becomes part of the D language community tooling ecosystem.
- Later: The README documents DUB, Docker, editor, CI, autofix, and `dscanner.ini` workflows.
- Community era: The project is maintained in the `dlang-community` GitHub organization.

### Related projects

- DUB is the D package manager installation path documented by the project.
- DMD, LDC, and GDC are supported compiler/build targets called out in the README.
- D editors and GitHub Actions are integration targets for D-Scanner output.

### 来源

- <https://github.com/dlang-community/D-Scanner>
- <https://github.com/dlang-community/D-Scanner/blob/master/README.md>
- <https://code.dlang.org/packages/dscanner>


## 安全说明

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: dscanner.ini
- Windows: dscanner.ini
## 其他软件包管理器记录

- Nix - dscanner: normalized package name match | nixpkgs package indexes: pkgs/by-name/ds/dscanner/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - dscanner - 0.15.2-2: normalized package name match | Arch Linux sync databases: dscanner from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Swiss-army knife for D source code | https://github.com/dlang-community/D-Scanner


## Combined YAML source

View the package source record on GitHub. [combined/dscanner.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dscanner.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
