---
title: "ShellCheck"
description: "Runs ShellCheck over *.sh/*.bash/*.ksh files and extensionless files with a sh/bash shebang. ShellCheck only parses scripts; it never executes them. It runs with --norc so a repository's .shellcheckrc (source-path, external-sources, enable=...) cannot change what is read or checked, and from a temp directory with absolute file paths. Errors are medium, warnings low, info/style info; quoting hazards (SC2086, SC2046, SC2115, ...) are reported as security."
url: https://openaudit.se/auditors/code.shellcheck/
---

# ShellCheck

`code.shellcheck`

Runs ShellCheck over *.sh/*.bash/*.ksh files and extensionless files with a sh/bash shebang. ShellCheck only parses scripts; it never executes them. It runs with --norc so a repository's .shellcheckrc (source-path, external-sources, enable=...) cannot change what is read or checked, and from a temp directory with absolute file paths. Errors are medium, warnings low, info/style info; quoting hazards (SC2086, SC2046, SC2115, ...) are reported as security.

- **Engine:** Wrapped scanner
- **Wraps:** `shellcheck`
- **Targets:** Codebase
- **Areas:** Reliability, Security
- **Runs:** By default, when the target applies
- **Network:** Only the target itself

## Run only this auditor

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

Wraps shellcheck. 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`)
- [staticcheck Go lints](https://openaudit.se/auditors/code.staticcheck/) (`code.staticcheck`)
- [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`)
