# 使用 Homebrew, apk, apt, Nix 安装 cpplint

查看 cpplint 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:cpplint
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cpplint
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cpplint
```

  证据: Alpine Linux edge package indexes: cpplint from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install cpplint
```

  证据: Debian stable package indexes: cpplint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#cpplint
```

  证据: nixpkgs package indexes: pkgs/by-name/cp/cpplint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:cpplint
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cpplint>
- **版本:** 2.0.2
- **来源摘要:** Static code checker for C++
- **主页:** <https://pypi.org/project/cpplint/>
- **上游文档:** <https://pypi.org/project/cpplint/>
- **许可证:** Apache-2.0
- **源码归档:** <https://files.pythonhosted.org/packages/c5/83/47a9e7513ba4d943a9dac2f6752b444377c91880f4f4968799b4f42d89cc/cpplint-2.0.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cpplint (cli)
- cpplint (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.0.2
- 本地数据: OK
- 上游仓库: https://pypi.org/project/cpplint/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

cpplint is a command-line static style checker for C and C++ files following Google's C++ style guide.

### 项目历史

The maintained cpplint package identifies itself as a fork of Google's cpplint from google/styleguide. Its README says the fork keeps the same core purpose while accepting fixes that make the tool usable in wider contexts.

### 采用历史

The package is distributed through PyPI for Python-based installation and through Unix package managers, making it easy to add to local developer workflows and CI jobs.

### 使用方式

Typical usage is cpplint [OPTIONS] files. The fork documents practical additions such as Python 3 compatibility, recursive file discovery, exclusion support, JUnit XML output, configurable extensions, and repository-root overrides.

### 为什么软件包爱好者会关心

cpplint is a good example of a small language-policy tool that package managers keep around because many C++ projects want style checking without adopting a full compiler analysis stack.

### 时间线

- Original upstream: Google open-sourced the in-house cpplint tool in google/styleguide.
- Fork era: The cpplint/cpplint package tracks fixes and packaging-friendly changes for wider use.

### Related projects

- The package is directly related to Google's C++ Style Guide and the google/styleguide repository.

### 来源

- <https://github.com/cpplint/cpplint#readme>
- <https://pypi.org/project/cpplint/>
- <https://github.com/google/styleguide>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: CPPLINT.cfg
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cpplint
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - cpplint - 1.6.1-3: normalized package name match | Debian stable package indexes: cpplint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Static code checker for C++ | https://github.com/cpplint/cpplint
- Nix - cpplint: normalized package name match | nixpkgs package indexes: pkgs/by-name/cp/cpplint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cpplint - 1.6.1-3: normalized package name match | Ubuntu 24.04 LTS package indexes: cpplint from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Static code checker for C++ | https://github.com/cpplint/cpplint
- apk - cpplint - 2.0.2-r1: normalized package name match | Alpine Linux edge package indexes: cpplint from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Static code checker for C++ | https://github.com/cpplint/cpplint
- apk - cpplint-pyc - 2.0.2-r1: normalized package name match | Alpine Linux edge package indexes: cpplint-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for cpplint | https://github.com/cpplint/cpplint


## 相关链接

- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [cmake-lint](https://pkg.so/zh-hans/brew/cmake-lint/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, python, style-checker.
- [markdownlint-cli](https://pkg.so/zh-hans/brew/markdownlint-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [markdownlint-cli2](https://pkg.so/zh-hans/brew/markdownlint-cli2/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [editorconfig-checker](https://pkg.so/zh-hans/brew/editorconfig-checker/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [bashate](https://pkg.so/zh-hans/brew/bashate/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [actionlint](https://pkg.so/zh-hans/brew/actionlint/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [codespell](https://pkg.so/zh-hans/brew/codespell/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [checkstyle](https://pkg.so/zh-hans/brew/checkstyle/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [pycodestyle](https://pkg.so/zh-hans/brew/pycodestyle/) - Both packages touch the same language runtime or ecosystem. Shared terms: checker, cli, code, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/cpplint.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cpplint.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
