@@ -1176,45 +1176,39 @@ the `Compliance report...` in the `File` menu.
1176
1176
### Command line
1177
1177
1178
1178
There is a tool ` compliance-report ` that is distributed with Cppcheck Premium. To see
1179
- all available options run ` compliance-report ` in a terminal with any options.
1179
+ all available options run ` compliance-report ` in a terminal with no options.
1180
1180
1181
1181
Below is example usage to generate a Misra C 2012 compliance report.
1182
1182
1183
- 1 . Execute cppcheck and save warnings in an xml file. Save the checkers report.
1183
+ ` cppcheck --premium=misra-c-2012 -- xml-version=3 src 2> results.xml `
1184
1184
1185
- ` cppcheck --premium=misra-c-2012 --checkers-report=r.txt --xml src 2> results.xml `
1186
-
1187
- 2 . Use ` compliance-report ` to convert the files to an html report.
1188
-
1189
- ` compliance-report --misra-c-2012 --project-name=Device --project-version=2.3 --checkers-report=r.txt --output-file=report.html results.xml `
1185
+ ` compliance-report --misra-c-2012 --project-name=Device --project-version=2.3 --output-file=report.html results.xml `
1190
1186
1191
1187
Description of the options:
1192
1188
1193
1189
* ` --misra-c-2012 ` : Generate a compliance report for misra-c-2012
1194
1190
* ` --project-name ` : The name of the project
1195
1191
* ` --project-version ` : The version of the project
1196
- * ` --checkers-report ` : Provide the checkers report generated by Cppcheck
1197
1192
* ` --output-file ` : html filename that the report should be written to
1198
1193
* ` results.xml ` : The xml output from cppcheck
1199
1194
1200
1195
## Licenses
1201
1196
1202
1197
### Individual license
1203
1198
1204
- A license that is connected to your computer. You can check any code you want.
1205
-
1206
- ### LOC license
1199
+ A license that is connected to your computer.
1207
1200
1208
- A license that allows you to run cppcheck on a limited number of lines of code. It can only be used for certain licensed paths in a repository.
1201
+ After installing you run a register tool that will create a license file
1202
+ which is locked to your computer.
1209
1203
1210
- #### Running analysis
1204
+ ### Enterprise license
1211
1205
1212
- Commands :
1206
+ You receive a license file. Copy that to one of these paths :
1213
1207
1214
- cd check-path
1208
+ * Windows:
1209
+ * C:\\ ProgramData\\ Cppcheck Solutions AB\\
1215
1210
1216
- # Calculate lines of code and validate the license
1217
- premiumaddon --check-loc-license some-path/license-file > cppcheck-premium-loc
1211
+ * Linux:
1212
+ * /etc/cppcheckpremium/
1213
+ * ~ /.cppcheckpremium/
1218
1214
1219
- # Run cppcheck analysis
1220
- cppcheck <usual cppcheck parameters>
0 commit comments