---
title: "golangci-lint"
description: "Runs golangci-lint with the project's own .golangci config over each Go module. NOT safe on untrusted code: the config can load Go plugins (.so files and module plugins) that run inside the linter, which is why it is opt-in. Like the other Go wrappers it disables cgo and toolchain downloads and never builds or runs the target. gosec findings are security, bug-class linters (govet, errcheck, staticcheck, ...) reliability, the rest maintainability."
url: https://openaudit.se/auditors/code.golangci-lint/
---

# golangci-lint

`code.golangci-lint`

Runs golangci-lint with the project's own .golangci config over each Go module. NOT safe on untrusted code: the config can load Go plugins (.so files and module plugins) that run inside the linter, which is why it is opt-in. Like the other Go wrappers it disables cgo and toolchain downloads and never builds or runs the target. gosec findings are security, bug-class linters (govet, errcheck, staticcheck, ...) reliability, the rest maintainability.

- **Engine:** Wrapped scanner
- **Wraps:** `golangci-lint`
- **Targets:** Codebase
- **Areas:** Reliability, Maintainability, Security
- **Runs:** Opt-in: only when selected with --only
- **Network:** Contacts services beyond the target

## Run only this auditor

```sh
bunx @openaudit/cli . --only code.golangci-lint
```

Wraps golangci-lint. 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`)
- [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`)
- [PHPStan PHP static analysis](https://openaudit.se/auditors/code.phpstan/) (`code.phpstan`)
- [PMD Java analysis](https://openaudit.se/auditors/code.pmd/) (`code.pmd`)
