---
name: d-scanner
description: "Use when adopting D-Scanner to assess this standard: Apply a shared lint profile to D code"
---

# Apply D-Scanner

Analyze maintained modules with a versioned style-check configuration. Review diagnostics for unused declarations and error-prone constructs in the target compiler mode.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by D-Scanner.
2. Use D-Scanner in this repository to meet this standard: Apply a shared lint profile to D code. Analyze maintained modules with a versioned style-check configuration. Review diagnostics for unused declarations and error-prone constructs in the target compiler mode. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://github.com/dlang-community/D-Scanner) for configuration and prerequisites.
