GUI: Do not use --rule-texts in cppcheck premium (#5136)

This commit is contained in:
Daniel Marjamäki 2023-06-09 17:15:48 +02:00 committed by GitHub
parent bd6c5318ad
commit a62fedc641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1002,7 +1002,7 @@ Settings MainWindow::getCppcheckSettings()
if (!pythonCmd.isEmpty())
json += ", \"python\":\"" + pythonCmd + "\"";
const QString misraFile = fromNativePath(mSettings->value(SETTINGS_MISRA_FILE).toString());
if (addon == "misra" && !misraFile.isEmpty()) {
if (!isCppcheckPremium() && addon == "misra" && !misraFile.isEmpty()) {
QString arg;
if (misraFile.endsWith(".pdf", Qt::CaseInsensitive))
arg = "--misra-pdf=" + misraFile;