---
name: nim-check
description: "Use when adopting nim check to assess this standard: Type-check Nim before generating binaries"
---

# Apply nim check

Check the project's entry module with its target defines and package path. Report semantic and type diagnostics using the compiler used for release.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by nim check.
2. Use nim check in this repository to meet this standard: Type-check Nim before generating binaries. Check the project's entry module with its target defines and package path. Report semantic and type diagnostics using the compiler used for release. 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://nim-lang.org/docs/nimc.html) for configuration and prerequisites.
