Compliance Kits
C++ Core Guidelines
Rules-only kit
The C++ Core Guidelines are the modern C++ best practices maintained by the C++ community. This kit switches on their rules to improve safety and maintainability of C++ code.
Choose it
- Open Create New Project and choose the language.
- In the Compliance kit block, click C++ Core Guidelines in the row Rules-only kits. The safety standard goes back to None.
- Review the ticked boxes of step 2, adjust them if needed, then Create the new project.
What it ticks
| Project language | Coding standards ticked |
|---|---|
| C++ | C++ Core Guidelines |
| C | not offered (the guidelines are C++ only and are hidden for a C project) |
Choose it for new C++ projects that want modern practices.
What is created
<name>.compliance-kit.jsonwith"safetyStandard": nulland"preset": "core-guidelines".deviations.jsonfor the deviation records.- No coverage policy and no waivers file: a rules-only kit has no level.
Using it day to day
- Standards Coverage shows which rules of the standard are checked, Compliance Summary the score and violations, Deviations the rules you knowingly do not follow.
- It combines well with a safety standard: choose the safety standard in step 1, then tick C++ Core Guidelines in step 2 (it will carry the added mark).
- If you later need a safety standard, create the project with the safety standard instead: it ticks these rules and adds the level and coverage policy.
See the overview for the pages and file formats.
