GUI: Do not use --rule-texts in cppcheck premium (#5136)
This commit is contained in:
parent
bd6c5318ad
commit
a62fedc641
|
@ -1002,7 +1002,7 @@ Settings MainWindow::getCppcheckSettings()
|
||||||
if (!pythonCmd.isEmpty())
|
if (!pythonCmd.isEmpty())
|
||||||
json += ", \"python\":\"" + pythonCmd + "\"";
|
json += ", \"python\":\"" + pythonCmd + "\"";
|
||||||
const QString misraFile = fromNativePath(mSettings->value(SETTINGS_MISRA_FILE).toString());
|
const QString misraFile = fromNativePath(mSettings->value(SETTINGS_MISRA_FILE).toString());
|
||||||
if (addon == "misra" && !misraFile.isEmpty()) {
|
if (!isCppcheckPremium() && addon == "misra" && !misraFile.isEmpty()) {
|
||||||
QString arg;
|
QString arg;
|
||||||
if (misraFile.endsWith(".pdf", Qt::CaseInsensitive))
|
if (misraFile.endsWith(".pdf", Qt::CaseInsensitive))
|
||||||
arg = "--misra-pdf=" + misraFile;
|
arg = "--misra-pdf=" + misraFile;
|
||||||
|
|
Loading…
Reference in New Issue