# Install dscanner with Homebrew, Nix, pacman

Analyses e.g. the style and syntax of D code. Version 0.15.2 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dscanner
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:dscanner
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dscanner>
- **Version:** 0.15.2
- **Source summary:** Analyses e.g. the style and syntax of D code
- **Homepage:** <https://github.com/dlang-community/D-Scanner>
- **Repository:** <https://github.com/dlang-community/D-Scanner>
- **Upstream docs:** <https://github.com/dlang-community/D-Scanner#readme>
- **License:** BSL-1.0
- **Source archive:** <https://github.com/dlang-community/D-Scanner.git>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dscanner (cli)
- dscanner (alias)

## Build dependencies

- ldc

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.15.2
- Local data: ok
- Upstream repository: https://github.com/dlang-community/D-Scanner
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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 Details

- **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

## Other Package-Manager Records

- 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


## Related links

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


## Sources

- 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
