Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions docs/tools/cppcheck.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: Cppcheck
sidebar_label: Cppcheck
description: CodeRabbit's guide to Cppcheck.
---

[Cppcheck](https://cppcheck.sourceforge.io/) is a static code analysis tool for the C and C++ programming languages.

## Files

Cppcheck will run on files with the following extensions:

- `.cpp`
- `.cxx`
- `.cc`
- `.c`
- `.tpp`
- `.txx`

## Configuration

CodeRabbit will use the following settings based on the profile selected:

### Chill

```shell
--disable=warning,style,information,portability,unusedFunction
```

### Assertive

```shell
--disable=warning,style,information
```

CodeRabbit will use the default settings based on the profile selected if no config file is found.

## Links

- [Cppcheck Configuration](https://sourceforge.net/p/cppcheck/wiki/ListOfChecks/)
2 changes: 2 additions & 0 deletions docs/tools/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Remove extraneous f prefix
| :-------------------------- | :--------------------------------------------------------- |
| All | [Gitleaks][Gitleaks] |
| CloudFormation | [Checkov][Checkov] |
| Cppcheck | [Cppcheck][Cppcheck] |
| CSS | [Biome][Biome] |
| Docker | [Hadolint][Hadolint], [Checkov][Checkov] |
| GitHub Actions | [Actionlint][Actionlint] |
Expand Down Expand Up @@ -83,3 +84,4 @@ Remove extraneous f prefix
[Actionlint]: ./actionlint.md
[Regal]: ./regal.md
[PMD]: ./pmd.md
[Cppcheck]: ./cppcheck.md