# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dscanner>
- **版本:** 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>
- **上游文档:** <https://github.com/dlang-community/D-Scanner#readme>
- **许可证:** BSL-1.0
- **源码归档:** <https://github.com/dlang-community/D-Scanner.git>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- dscanner (cli)
- dscanner (别名)

## 构建依赖

- ldc

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.15.2
- 本地数据: OK
- 上游仓库: https://github.com/dlang-community/D-Scanner
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dscanner
- **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

## 其他软件包管理器记录

- 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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [ldc](https://www.automicvault.com/zh-hans/pkg/brew/ldc/) - Build dependency declared by Homebrew.
- [errcheck](https://www.automicvault.com/zh-hans/pkg/brew/errcheck/) - Shares av.db curated category or tags: cli, developer-tools, linter, static-analysis.
- [eslint](https://www.automicvault.com/zh-hans/pkg/brew/eslint/) - Shares av.db curated category or tags: cli, developer-tools, linter, static-analysis.
- [fortitude](https://www.automicvault.com/zh-hans/pkg/brew/fortitude/) - Shares av.db curated category or tags: cli, developer-tools, linter, static-analysis.
- [go-critic](https://www.automicvault.com/zh-hans/pkg/brew/go-critic/) - Shares av.db curated category or tags: cli, developer-tools, linter, static-analysis.
- [ktlint](https://www.automicvault.com/zh-hans/pkg/brew/ktlint/) - Shares av.db curated category or tags: cli, developer-tools, linter, static-analysis.
- [kube-linter](https://www.automicvault.com/zh-hans/pkg/brew/kube-linter/) - Shares av.db curated category or tags: cli, developer-tools, linter, static-analysis.
- [luacheck](https://www.automicvault.com/zh-hans/pkg/brew/luacheck/) - Shares av.db curated category or tags: cli, developer-tools, linter, static-analysis.
- [pmd](https://www.automicvault.com/zh-hans/pkg/brew/pmd/) - Shares av.db curated category or tags: cli, developer-tools, linter, static-analysis.
- [syntaxerl](https://www.automicvault.com/zh-hans/pkg/brew/syntaxerl/) - Local package facts share a topical domain. Shared terms: analysis, checker, cli, code, developer.
- [swiftlint](https://www.automicvault.com/zh-hans/pkg/brew/swiftlint/) - Local package facts share a topical domain. Shared terms: analysis, cli, code, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/dscanner.yml](https://github.com/automic-vault/db/blob/main/combined/dscanner.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
