Skip to content

Commit c46f470

Browse files
author
gberkes
committed
Refactor: moved 3 #include directives to the top of the file.
To aid code readability, all #include directives in a code file should be grouped together near the top. The only items that may precede an #include in a file are other preprocessor directives or comments. Reference: https://sonarcloud.io/project/issues?sinceLeakPeriod=true&issueStatuses=OPEN%2CCONFIRMED&id=owasp-modsecurity_ModSecurity&open=AY8-ffgqm_fzkWiCOtCs&tab=code Deleted some unnecessary trailing spaces as well.
1 parent 0feaeac commit c46f470

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

headers/modsecurity/modsecurity.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
* std::cout << "There is an intervention" << std::endl;
3939
* }
4040
*
41-
* ...
41+
* ...
4242
*
4343
* @endcode
44-
*
44+
*
4545
*/
4646

4747
/**
@@ -81,6 +81,11 @@
8181
#endif
8282

8383

84+
#include "modsecurity/intervention.h"
85+
#include "modsecurity/transaction.h"
86+
#include "modsecurity/debug_log.h"
87+
88+
8489
#ifndef HEADERS_MODSECURITY_MODSECURITY_H_
8590
#define HEADERS_MODSECURITY_MODSECURITY_H_
8691

@@ -160,7 +165,7 @@ namespace modsecurity {
160165
LoggingPhase,
161166
/**
162167
* Just a marking for the expected number of phases.
163-
*
168+
*
164169
*/
165170
NUMBER_OF_PHASES,
166171
};
@@ -170,11 +175,6 @@ namespace modsecurity {
170175
#endif
171176

172177

173-
174-
#include "modsecurity/intervention.h"
175-
#include "modsecurity/transaction.h"
176-
#include "modsecurity/debug_log.h"
177-
178178
/**
179179
* TAG_NUM:
180180
*

0 commit comments

Comments
 (0)