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())
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue