---
name: gnatcheck
description: "Use when adopting GNATcheck to assess this standard: Apply a shared Ada coding standard"
---

# Apply GNATcheck

Define coding rules for the Ada project and retain rule IDs with each finding. Check representative project configurations and narrowly document justified exemptions.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by GNATcheck.
2. Use GNATcheck in this repository to meet this standard: Apply a shared Ada coding standard. Define coding rules for the Ada project and retain rule IDs with each finding. Check representative project configurations and narrowly document justified exemptions. 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://docs.adacore.com/gnatcheck-docs/users_guide/) for configuration and prerequisites.
