我用phpcs进行了分析,得到了与saverity一起使用的规则的结果 但是当我查看phpcs的源代码时,我没有看到具有 severity:5 ...的规则,我试图查看结果中表示的phpcs的所有规则。在一个项目上做了
这是我的结果,如何在phpcs中查看此规则。
"/home/ke/project-management-api/src/StatusCodes.php": {
"errors": 8,
"warnings": 0,
"messages": [
{
"message": "Missing file doc comment",
"source": "PEAR.Commenting.FileComment.Missing",
"severity": 5,
"type": "ERROR",
"line": 2,
"column": 1,
"fixable": false
},
{
"message": "Missing @category tag in class comment",
"source": "PEAR.Commenting.ClassComment.MissingCategoryTag",
"severity": 5,
"type": "ERROR",
"line": 9,
"column": 2,
"fixable": false
},
{
"message": "Missing @package tag in class comment",
"source": "PEAR.Commenting.ClassComment.MissingPackageTag",
"severity": 5,
"type": "ERROR",
"line": 9,
"column": 2,
"fixable": false
},
{