Added tests and updated a few. #600
coding-standard.yml
on: push
M2 Coding Standard
10s
Annotations
1 error and 8 warnings
M2 Coding Standard:
Test/Unit/Helper/RequestHelperTest.php#L11
Each interface must be in a file by itself
|
M2 Coding Standard
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
M2 Coding Standard
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
M2 Coding Standard:
Test/Unit/Helper/RequestHelperTest.php#L7
Interface should have name that ends with "Interface" suffix.
|
M2 Coding Standard:
Test/Unit/Helper/RequestHelperTest.php#L7
Opening brace of a interface must be on the line after the definition
|
M2 Coding Standard:
Test/Unit/Helper/RequestHelperTest.php#L79
Method name "RequestHelperTest::getClientIp_REMOTE_ADDR" is not in camel caps format
|
M2 Coding Standard:
Test/Unit/Helper/RequestHelperTest.php#L101
Method name "RequestHelperTest::getClientIp_HTTP_X_FORWARDED_FOR" is not in camel caps format
|
M2 Coding Standard:
Test/Unit/Helper/RequestHelperTest.php#L119
Method name "RequestHelperTest::getClientIp_HTTP_X_FORWARDED" is not in camel caps format
|
M2 Coding Standard:
Helper/RequestHelper.php#L25
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
|