Skip to content

Commit fc57857

Browse files
committed
fix SonarCloud Code Error
1 parent 25824cb commit fc57857

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

bindings/python

Submodule python added at bc625d5

others/libinjection

Submodule libinjection added at 2117822

others/mbedtls

Submodule mbedtls added at 0fe989b

src/parser/seclang-scanner.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8400,8 +8400,7 @@ YY_RULE_SETUP
84008400
driver.loc.push_back(new yy::location());
84018401
driver.m_filenames.push_back(f);
84028402
driver.loc.back()->begin.filename = driver.loc.back()->end.filename = &(driver.m_filenames.back());
8403-
// NOSONAR
8404-
if (!modsecurity::utils::fopen_modsec(&yyin, f.c_str(), "r") != 0) {
8403+
if (!modsecurity::utils::fopen_modsec(&yyin, f.c_str(), "r") != 0) { // NOSONAR
84058404
BEGIN(INITIAL);
84068405
driver.loc.pop_back();
84078406
driver.error (*driver.loc.back(), "", s + std::string(": Not able to open file. ") + err);
@@ -8432,8 +8431,7 @@ YY_RULE_SETUP
84328431
driver.loc.push_back(new yy::location());
84338432
driver.m_filenames.push_back(f);
84348433
driver.loc.back()->begin.filename = driver.loc.back()->end.filename = &(driver.m_filenames.back());
8435-
// NOSONAR
8436-
if (!modsecurity::utils::fopen_modsec(&yyin, f.c_str(), "r") != 0) {
8434+
if (!modsecurity::utils::fopen_modsec(&yyin, f.c_str(), "r") != 0) { // NOSONAR
84378435
BEGIN(INITIAL);
84388436
driver.loc.pop_back();
84398437
driver.error (*driver.loc.back(), "", s + std::string(": Not able to open file. ") + err);
Submodule secrules-language-tests added at a3d4405

0 commit comments

Comments
 (0)