---
title: "staticcheck Go lints"
description: "Runs staticcheck over each Go module (go.mod). staticcheck type-checks packages through the Go toolchain, which may download missing modules but never compiles to binaries, runs go:generate or executes the target's code (cgo is disabled and toolchain downloads are blocked). SA checks are medium (likely bugs), S simplifications low, ST style info."
url: https://openaudit.se/auditors/code.staticcheck/
---

# staticcheck Go lints

`code.staticcheck`

Runs staticcheck over each Go module (go.mod). staticcheck type-checks packages through the Go toolchain, which may download missing modules but never compiles to binaries, runs go:generate or executes the target's code (cgo is disabled and toolchain downloads are blocked). SA checks are medium (likely bugs), S simplifications low, ST style info.

- **Engine:** Wrapped scanner
- **Wraps:** `staticcheck`
- **Targets:** Codebase
- **Areas:** Reliability, Maintainability
- **Runs:** By default, when the target applies
- **Network:** Contacts services beyond the target

## Run only this auditor

```sh
bunx @openaudit/cli . --only code.staticcheck
```

Wraps staticcheck. When it isn't installed, the auditor is skipped with an install hint and the rest of the audit runs.

## More reliability auditors

- [TypeScript type-check (tsc)](https://openaudit.se/auditors/code.typecheck/) (`code.typecheck`)
- [Ruff Python lints](https://openaudit.se/auditors/code.ruff/) (`code.ruff`)
- [ShellCheck](https://openaudit.se/auditors/code.shellcheck/) (`code.shellcheck`)
- [Rust clippy lints](https://openaudit.se/auditors/code.clippy/) (`code.clippy`)
- [mypy type check](https://openaudit.se/auditors/code.mypy/) (`code.mypy`)
- [golangci-lint](https://openaudit.se/auditors/code.golangci-lint/) (`code.golangci-lint`)
- [PHPStan PHP static analysis](https://openaudit.se/auditors/code.phpstan/) (`code.phpstan`)
- [PMD Java analysis](https://openaudit.se/auditors/code.pmd/) (`code.pmd`)
