Merge pull request #3213 from gberkes/v3/sonar_move_these_3_includes_to_the_top_of_the_file

Refactor: moved 3 #include directives to the top of the file.
This commit is contained in:
Ervin Hegedus 2024-08-07 14:29:34 +02:00 committed by GitHub
commit a3ffc5a0d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,10 +38,10 @@
* std::cout << "There is an intervention" << std::endl;
* }
*
* ...
* ...
*
* @endcode
*
*
*/
/**
@ -81,6 +81,11 @@
#endif
#include "modsecurity/intervention.h"
#include "modsecurity/transaction.h"
#include "modsecurity/debug_log.h"
#ifndef HEADERS_MODSECURITY_MODSECURITY_H_
#define HEADERS_MODSECURITY_MODSECURITY_H_
@ -160,7 +165,7 @@ namespace modsecurity {
LoggingPhase,
/**
* Just a marking for the expected number of phases.
*
*
*/
NUMBER_OF_PHASES,
};
@ -170,11 +175,6 @@ namespace modsecurity {
#endif
#include "modsecurity/intervention.h"
#include "modsecurity/transaction.h"
#include "modsecurity/debug_log.h"
/**
* TAG_NUM:
*