-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I have an issue, I tested this scenario where we remove a php comment docs. But that doc is needed for phpcs to check.
But what happen it went out it passed the checker.
diff.text
diff --git a/<path>/country_controller.php b/<path>/country_controller.php
index 0965de3e93..73afffd042 100644
--- a/<path>/country_controller.php
+++ b/<path>/country_controller.php
@@ -1,13 +1,4 @@
<?php
-/**
- * Controller to retrieve information about a country
- *
- * PHP version 5
- *
- * @author Sample Author <[email protected]>
- * @copyright Sample Copyright
- */
namespace <namespace>;
class Country_Controller extends Base_Controller {
phpcs.json
{
"totals": {
"errors": 3,
"warnings": 0
},
"files": {
"<path>\/country_controller.php": {
"errors": 1,
"warnings": 0,
"messages": [
{
"message": "Missing file doc comment",
"source": "CSNStores.Commenting.FileComment.Missing",
"severity": 5,
"type": "ERROR",
"line": 2,
"column": 1
}
]
}
}
}
the output of the difffilter will be
php ./.ci/diffFilter.phar --phpcsStrict diff.txt phpcs.json
100.00% Covered
The expected for this, it should have an error.
Metadata
Metadata
Assignees
Labels
No labels