Skip to content

Commit 393f60b

Browse files
alexdeliferAlex Delifer
andauthored
Feature/dump: adds --dump flags to .codeclimate (#51)
* Add --dump option in cppcheck: config: dump: true * Update readme with new features like dump and library Co-authored-by: Alex Delifer <alex@delifer.ca>
1 parent 3d0665e commit 393f60b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ in `.codeclimate.yml`:
4242
Refer to the `--platform=` option of `cppcheck` for more information.
4343
* `library`: specifies library `cfg` files to be loaded. Refer to the
4444
`--library=` option of `cppcheck` for more information.
45+
* `dump`: create dump files during execution.
46+
Refer to the `--dump` option of `cppcheck` for more information.
4547
* `defines`: define preprocessor symbols.
4648
Refer to the `-D` option of `cppcheck` for more information.
4749
* `undefines`: undefine preprocessor symbols.
@@ -88,8 +90,10 @@ plugins:
8890
- include/
8991
max_configs: 42
9092
inconclusive: false
93+
dump: false
9194
suppressions-list: .cppcheck-suppressions
9295
inline-suppr: true
96+
library: googletest
9397
```
9498
9599
## Need help?

lib/command.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def build(self):
4949
if self.config.get('inline-suppr', 'true') == True:
5050
command.append('--inline-suppr')
5151

52+
if self.config.get('dump', 'true') == True:
53+
command.append('--dump')
54+
5255
command.extend(['--xml', '--xml-version=2'])
5356
command.append('--file-list={}'.format(self.file_list_path))
5457

0 commit comments

Comments
 (0)