google_forms/phpcs_errors.json

3 lines
3.1 KiB
JSON
Raw Normal View History

2024-08-21 06:34:30 +00:00
{"totals":{"errors":7,"warnings":1,"fixable":0},"files":{"\/var\/www\/html\/google_forms\/application\/controllers\/Testing\/Dummy.php":{"errors":7,"warnings":1,"messages":[{"message":"Missing doc comment for class Dummy","source":"Squiz.Commenting.ClassComment.Missing","severity":5,"fixable":false,"type":"ERROR","line":9,"column":1},{"message":"Class name application\\controllers\\Testing\\Dummy does not match filepath \/var\/www\/html\/google_forms\/application\/controllers\/Testing\/Dummy.php.","source":"SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName","severity":5,"fixable":false,"type":"ERROR","line":9,"column":7},{"message":"Missing doc comment for function show()","source":"Squiz.Commenting.FunctionComment.Missing","severity":5,"fixable":false,"type":"ERROR","line":13,"column":12},{"message":"Assignments must be the first block of code on a line","source":"Squiz.PHP.DisallowMultipleAssignments.Found","severity":5,"fixable":false,"type":"ERROR","line":15,"column":17},{"message":"Code after the RETURN statement on line 25 cannot be executed","source":"Squiz.PHP.NonExecutableCode.Unreachable","severity":5,"fixable":false,"type":"WARNING","line":27,"column":13},{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","severity":5,"fixable":false,"type":"ERROR","line":40,"column":5},{"message":"The value of a comparison must not be assigned to a variable","source":"Squiz.PHP.DisallowComparisonAssignment.AssignedComparison","severity":5,"fixable":false,"type":"ERROR","line":44,"column":18},{"message":"Use of the \"global\" keyword is forbidden; use \"$GLOBALS['db']\" instead","source":"Squiz.PHP.GlobalKeyword.NotAllowed","severity":5,"fixable":false,"type":"ERROR","line":47,"column":9}]}}}
{"totals":{"errors":5,"warnings":1,"fixable":0},"files":{"\/var\/www\/html\/google_forms\/application\/controllers\/Testing\/Form.php":{"errors":5,"warnings":1,"messages":[{"message":"You must use \"\/**\" style comments for a class comment","source":"Squiz.Commenting.ClassComment.WrongStyle","severity":5,"fixable":false,"type":"ERROR","line":9,"column":7},{"message":"Class name application\\controllers\\Form does not match filepath \/var\/www\/html\/google_forms\/application\/controllers\/Testing\/Form.php.","source":"SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName","severity":5,"fixable":false,"type":"ERROR","line":9,"column":13},{"message":"Missing doc comment for function __construct()","source":"Squiz.Commenting.FunctionComment.Missing","severity":5,"fixable":false,"type":"ERROR","line":11,"column":12},{"message":"Missing doc comment for function submit()","source":"Squiz.Commenting.FunctionComment.Missing","severity":5,"fixable":false,"type":"ERROR","line":18,"column":12},{"message":"Line exceeds 120 characters; contains 136 characters","source":"Generic.Files.LineLength.TooLong","severity":5,"fixable":false,"type":"WARNING","line":25,"column":136},{"message":"Missing doc comment for function view()","source":"Squiz.Commenting.FunctionComment.Missing","severity":5,"fixable":false,"type":"ERROR","line":31,"column":12}]}}}