Skip to content

Commit 7521fbd

Browse files
feat: cppcheck (#90)
1 parent 51635bd commit 7521fbd

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

docs/tools/cppcheck.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Cppcheck
3+
sidebar_label: Cppcheck
4+
description: CodeRabbit's guide to Cppcheck.
5+
---
6+
7+
[Cppcheck](https://cppcheck.sourceforge.io/) is a static code analysis tool for the C and C++ programming languages.
8+
9+
## Files
10+
11+
Cppcheck will run on files with the following extensions:
12+
13+
- `.cpp`
14+
- `.cxx`
15+
- `.cc`
16+
- `.c`
17+
- `.tpp`
18+
- `.txx`
19+
20+
## Configuration
21+
22+
CodeRabbit will use the following settings based on the profile selected:
23+
24+
### Chill
25+
26+
```shell
27+
--disable=warning,style,information,portability,unusedFunction
28+
```
29+
30+
### Assertive
31+
32+
```shell
33+
--disable=warning,style,information
34+
```
35+
36+
CodeRabbit will use the default settings based on the profile selected if no config file is found.
37+
38+
## Links
39+
40+
- [Cppcheck Configuration](https://sourceforge.net/p/cppcheck/wiki/ListOfChecks/)

docs/tools/tools.md

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Remove extraneous f prefix
4040
| :-------------------------- | :--------------------------------------------------------- |
4141
| All | [Gitleaks][Gitleaks] |
4242
| CloudFormation | [Checkov][Checkov] |
43+
| Cppcheck | [Cppcheck][Cppcheck] |
4344
| CSS | [Biome][Biome] |
4445
| Docker | [Hadolint][Hadolint], [Checkov][Checkov] |
4546
| GitHub Actions | [Actionlint][Actionlint] |
@@ -83,3 +84,4 @@ Remove extraneous f prefix
8384
[Actionlint]: ./actionlint.md
8485
[Regal]: ./regal.md
8586
[PMD]: ./pmd.md
87+
[Cppcheck]: ./cppcheck.md

0 commit comments

Comments
 (0)