Prechecker results: error


PHP lint problems

(26 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]

local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-extends.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) or namespace (T_NAMESPACE) or \\ (T_NS_SEPARATOR) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-extends.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-alias-final-method.php
(#2) PHP Parse error: syntax error, unexpected '}', expecting ';' in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-alias-final-method.php on line 2
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-alias-method.php
(#2) PHP Parse error: syntax error, unexpected '}', expecting ';' in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-alias-method.php on line 2
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-alias-private-method.php
(#2) PHP Parse error: syntax error, unexpected '}', expecting ';' in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-alias-private-method.php on line 2
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-alias-protected-method.php
(#2) PHP Parse error: syntax error, unexpected '}', expecting ';' in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-alias-protected-method.php on line 2
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-alias-public-method.php
(#2) PHP Parse error: syntax error, unexpected '}', expecting ';' in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-alias-public-method.php on line 2
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-const.php
(#2) PHP Parse error: syntax error, unexpected 'const' (T_CONST), expecting identifier (T_STRING) or namespace (T_NAMESPACE) or \\ (T_NS_SEPARATOR) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-const.php on line 2
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-function.php
(#2) PHP Parse error: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING) or namespace (T_NAMESPACE) or \\ (T_NS_SEPARATOR) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait-function.php on line 2
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait.php
(#2) PHP Parse error: syntax error, unexpected '}', expecting ',' or ';' or '{' in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class-use-trait.php on line 2
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/class.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/const.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/const.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/function-declare-reference.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting '(' in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/function-declare-reference.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/function-declare.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting '(' in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/function-declare.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/interface-extends.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) or namespace (T_NAMESPACE) or \\ (T_NS_SEPARATOR) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/interface-extends.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/interface.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/interface.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/namespace.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting '{' in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/namespace.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/nested-namespace.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/nested-namespace.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/trait.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/trait.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/use-as.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/use-as.php on line 3
local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/use.php
(#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) or function (T_FUNCTION) or const (T_CONST) or \\ (T_NS_SEPARATOR) in /local/codechecker/PHPCompatibility/Tests/Keywords/ForbiddenNames/use.php on line 3
local/codechecker/moodle/tests/fixtures/generic_whitespace_scopeindent.php
(#160) PHP Fatal error: Cannot use "self" when no class scope is active in /local/codechecker/moodle/tests/fixtures/generic_whitespace_scopeindent.php on line 160
local/codechecker/moodle/tests/fixtures/moodle_comenting_inlinecomment.php
(#41) PHP Parse error: syntax error, unexpected 'define' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /local/codechecker/moodle/tests/fixtures/moodle_comenting_inlinecomment.php on line 41
local/codechecker/moodle/tests/fixtures/moodle_php_forbiddenfunctions.php
(#17) PHP Parse error: syntax error, unexpected 'b' (T_STRING), expecting ',' or ';' in /local/codechecker/moodle/tests/fixtures/moodle_php_forbiddenfunctions.php on line 17
local/codechecker/moodle/tests/fixtures/moodle_php_forbiddennamesasinvokedfunctions.php
(#19) PHP Parse error: syntax error, unexpected '(', expecting abstract (T_ABSTRACT) or final (T_FINAL) or class (T_CLASS) in /local/codechecker/moodle/tests/fixtures/moodle_php_forbiddennamesasinvokedfunctions.php on line 19
local/codechecker/moodle/tests/fixtures/moodle_php_forbiddentokens.php
(#6) PHP Fatal error: 'goto' to undefined label 'label' in /local/codechecker/moodle/tests/fixtures/moodle_php_forbiddentokens.php on line 6
local/codechecker/moodle/tests/fixtures/phpcompatibility_php_forbiddencalltimepassbyreference.php
(#6) PHP Parse error: syntax error, unexpected '&' in /local/codechecker/moodle/tests/fixtures/phpcompatibility_php_forbiddencalltimepassbyreference.php on line 6

PHP coding style problems

(739 errors, 53 warnings)

This section shows the coding style problems detected in the code by phpcs [More info]

local/codechecker/moodle/Sniffs/Commenting/InlineCommentSniff.php
(#34) Member variable "supportedTokenizers" must be all lower-case
(#46) Opening brace should be on the same line as the declaration
(#64) Variable "phpcsFile" must be all lower-case
(#64) Variable "stackPtr" must be all lower-case
(#65) Opening brace should be on the same line as the declaration
(#66) Variable "phpcsFile" must be all lower-case
(#71) Variable "stackPtr" must be all lower-case
(#72) Variable "nextToken" must be all lower-case
(#72) Variable "phpcsFile" must be all lower-case
(#73) Variable "emptyTokens" must be all lower-case
(#74) Variable "stackPtr" must be all lower-case
(#97) Variable "nextToken" must be all lower-case
(#102) Variable "nextToken" must be all lower-case
(#102) Variable "nextToken" must be all lower-case
(#106) Variable "phpcsFile" must be all lower-case
(#109) Variable "emptyTokens" must be all lower-case
(#113) Variable "nextToken" must be all lower-case
(#113) Variable "phpcsFile" must be all lower-case
(#113) Variable "nextToken" must be all lower-case
(#114) Variable "nextToken" must be all lower-case
(#115) Variable "nextToken" must be all lower-case
(#116) Variable "nextToken" must be all lower-case
(#117) Variable "nextToken" must be all lower-case
(#124) Variable "prevToken" must be all lower-case
(#124) Variable "phpcsFile" must be all lower-case
(#125) Variable "emptyTokens" must be all lower-case
(#126) Variable "stackPtr" must be all lower-case
(#130) Variable "prevToken" must be all lower-case
(#135) Variable "nextToken" must be all lower-case
(#135) Variable "phpcsFile" must be all lower-case
(#137) Variable "stackPtr" must be all lower-case
(#142) Variable "nextToken" must be all lower-case
(#143) Variable "nextToken" must be all lower-case
(#144) Variable "nextToken" must be all lower-case
(#144) Variable "phpcsFile" must be all lower-case
(#146) Variable "nextToken" must be all lower-case
(#151) Variable "nextToken" must be all lower-case
(#152) Variable "nextToken" must be all lower-case
(#155) Expected 1 space before comment text but found 3; use block comment if you need indentation
(#156) Expected 1 space before comment text but found 3; use block comment if you need indentation
(#157) Expected 1 space before comment text but found 3; use block comment if you need indentation
(#158) Variable "nextToken" must be all lower-case
(#158) Variable "phpcsFile" must be all lower-case
(#159) Variable "emptyTokens" must be all lower-case
(#160) Variable "nextToken" must be all lower-case
(#164) Variable "nextToken" must be all lower-case
(#167) Variable "phpcsFile" must be all lower-case
(#169) Variable "nextToken" must be all lower-case
(#171) Variable "phpcsFile" must be all lower-case
(#176) Variable "nextToken" must be all lower-case
(#176) Variable "phpcsFile" must be all lower-case
(#184) Variable "nextToken" must be all lower-case
(#188) Variable "phpcsFile" must be all lower-case
(#188) Variable "stackPtr" must be all lower-case
(#190) Variable "nextToken" must be all lower-case
(#192) Variable "phpcsFile" must be all lower-case
(#194) Variable "nextToken" must be all lower-case
(#196) Variable "phpcsFile" must be all lower-case
(#203) Variable "nextToken" must be all lower-case
(#204) Variable "phpcsFile" must be all lower-case
(#204) Variable "stackPtr" must be all lower-case
(#206) Variable "nextToken" must be all lower-case
(#209) Variable "nextToken" must be all lower-case
(#210) Variable "phpcsFile" must be all lower-case
(#210) Variable "stackPtr" must be all lower-case
(#216) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#218) Variable "stackPtr" must be all lower-case
(#220) Variable "phpcsFile" must be all lower-case
(#220) Variable "stackPtr" must be all lower-case
(#224) Variable "stackPtr" must be all lower-case
(#226) Variable "phpcsFile" must be all lower-case
(#226) Variable "stackPtr" must be all lower-case
(#228) Variable "stackPtr" must be all lower-case
(#229) Variable "phpcsFile" must be all lower-case
(#229) Variable "stackPtr" must be all lower-case
(#235) Variable "previousContent" must be all lower-case
(#235) Variable "phpcsFile" must be all lower-case
(#235) Variable "stackPtr" must be all lower-case
(#236) Variable "previousContent" must be all lower-case
(#236) Variable "stackPtr" must be all lower-case
(#237) Variable "previousContent" must be all lower-case
(#242) Variable "previousContent" must be all lower-case
(#243) Variable "previousContent" must be all lower-case
(#245) Variable "lastContent" must be all lower-case
(#245) Variable "phpcsFile" must be all lower-case
(#245) Variable "previousContent" must be all lower-case
(#246) Variable "lastContent" must be all lower-case
(#252) Variable "stackPtr" must be all lower-case
(#266) Inline comments must end in full-stops, exclamation marks, or question marks
(#269) Variable "phpcsFile" must be all lower-case
(#269) Variable "stackPtr" must be all lower-case
(#271) Inline comments must end in full-stops, exclamation marks, or question marks
(#275) Variable "phpcsFile" must be all lower-case
(#275) Variable "stackPtr" must be all lower-case
(#278) Variable "prevToken" must be all lower-case
(#278) Variable "phpcsFile" must be all lower-case
(#279) Variable "emptyTokens" must be all lower-case
(#280) Variable "stackPtr" must be all lower-case
(#284) Variable "prevToken" must be all lower-case
(#284) Variable "prevToken" must be all lower-case
(#284) Variable "stackPtr" must be all lower-case
(#286) Variable "phpcsFile" must be all lower-case
(#286) Variable "stackPtr" must be all lower-case
(#293) Variable "slashCount" must be all lower-case
(#296) Variable "slashCount" must be all lower-case
(#298) Variable "slashCount" must be all lower-case
(#299) Variable "phpcsFile" must be all lower-case
(#299) Variable "stackPtr" must be all lower-case
(#302) Variable "slashCount" must be all lower-case
(#303) Variable "spaceCount" must be all lower-case
(#304) Variable "tabFound" must be all lower-case
(#306) Variable "commentLength" must be all lower-case
(#307) Variable "slashCount" must be all lower-case
(#307) Variable "commentLength" must be all lower-case
(#309) Variable "tabFound" must be all lower-case
(#317) Variable "spaceCount" must be all lower-case
(#321) Variable "tabFound" must be all lower-case
(#324) Variable "slashCount" must be all lower-case
(#327) Variable "phpcsFile" must be all lower-case
(#327) Variable "stackPtr" must be all lower-case
(#328) Variable "spaceCount" must be all lower-case
(#331) Variable "slashCount" must be all lower-case
(#334) Variable "phpcsFile" must be all lower-case
(#334) Variable "stackPtr" must be all lower-case
(#335) Variable "spaceCount" must be all lower-case
(#338) Variable "spaceCount" must be all lower-case
(#339) Variable "slashCount" must be all lower-case
(#339) Variable "spaceCount" must be all lower-case
(#342) Variable "phpcsFile" must be all lower-case
(#342) Variable "stackPtr" must be all lower-case
(#346) Variable "newComment" must be all lower-case
(#346) Variable "stackPtr" must be all lower-case
(#347) Variable "phpcsFile" must be all lower-case
(#347) Variable "stackPtr" must be all lower-case
(#347) Variable "newComment" must be all lower-case
(#354) Variable "nextComment" must be all lower-case
(#354) Variable "phpcsFile" must be all lower-case
(#354) Variable "stackPtr" must be all lower-case
(#355) Variable "nextComment" must be all lower-case
(#356) Variable "nextComment" must be all lower-case
(#356) Variable "stackPtr" must be all lower-case
(#361) Variable "topComment" must be all lower-case
(#361) Variable "stackPtr" must be all lower-case
(#362) Variable "lastComment" must be all lower-case
(#362) Variable "stackPtr" must be all lower-case
(#363) Variable "topComment" must be all lower-case
(#363) Variable "phpcsFile" must be all lower-case
(#363) Variable "lastComment" must be all lower-case
(#364) Variable "topComment" must be all lower-case
(#364) Variable "lastComment" must be all lower-case
(#368) Variable "lastComment" must be all lower-case
(#368) Variable "topComment" must be all lower-case
(#371) Variable "topComment" must be all lower-case
(#371) Variable "lastComment" must be all lower-case
(#372) Variable "commentText" must be all lower-case
(#374) Variable "topComment" must be all lower-case
(#374) Variable "stackPtr" must be all lower-case
(#376) Variable "otherSlashCount" must be all lower-case
(#377) Variable "commentText" must be all lower-case
(#377) Variable "otherSlashCount" must be all lower-case
(#383) Variable "commentText" must be all lower-case
(#383) Variable "commentText" must be all lower-case
(#386) Variable "phpcsFile" must be all lower-case
(#386) Variable "commentText" must be all lower-case
(#390) Variable "commentText" must be all lower-case
(#392) Variable "phpcsFile" must be all lower-case
(#392) Variable "stackPtr" must be all lower-case
(#394) Variable "phpcsFile" must be all lower-case
(#394) Variable "stackPtr" must be all lower-case
(#401) Variable "commentText" must be all lower-case
(#403) Variable "phpcsFile" must be all lower-case
(#403) Variable "topComment" must be all lower-case
(#407) Variable "commentCloser" must be all lower-case
(#407) Variable "commentText" must be all lower-case
(#407) Variable "commentText" must be all lower-case
(#408) Variable "acceptedClosers" must be all lower-case
(#414) Variable "commentCloser" must be all lower-case
(#414) Variable "acceptedClosers" must be all lower-case
(#417) Variable "acceptedClosers" must be all lower-case
(#417) Variable "closerName" must be all lower-case
(#418) Variable "closerName" must be all lower-case
(#423) Variable "phpcsFile" must be all lower-case
(#423) Variable "stackPtr" must be all lower-case
(#428) Variable "previousContent" must be all lower-case
(#428) Variable "stackPtr" must be all lower-case
(#430) Variable "stackPtr" must be all lower-case
(#430) Variable "phpcsFile" must be all lower-case
(#431) Variable "stackPtr" must be all lower-case
(#435) Variable "stackPtr" must be all lower-case
(#441) Variable "phpcsFile" must be all lower-case
(#441) Variable "stackPtr" must be all lower-case
(#443) Variable "phpcsFile" must be all lower-case
(#443) Variable "stackPtr" must be all lower-case
(#444) Variable "phpcsFile" must be all lower-case
(#445) Variable "stackPtr" must be all lower-case
(#450) Variable "phpcsFile" must be all lower-case
(#453) Variable "phpcsFile" must be all lower-case
local/codechecker/moodle/Sniffs/ControlStructures/ControlSignatureSniff.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#42) Protected method name "moodle_Sniffs_ControlStructures_ControlSignatureSniff::getPatterns" must be in lower-case letters only
local/codechecker/moodle/Sniffs/Files/MoodleInternalSniff.php
(#102) Variable "emptyTokens" must be all lower-case
(#140) Variable "emptyTokens" must be all lower-case
(#140) Variable "bracketTokens" must be all lower-case
(#204) Variable "emptyTokens" must be all lower-case
(#204) Variable "bracketTokens" must be all lower-case
(#273) Variable "emptyTokens" must be all lower-case
(#278) Variable "methodPrefixes" must be all lower-case
local/codechecker/moodle/Sniffs/NamingConventions/ValidFunctionNameSniff.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#86) Protected method name "moodle_Sniffs_NamingConventions_ValidFunctionNameSniff::processTokenWithinScope" must be in lower-case letters only
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#134) Protected method name "moodle_Sniffs_NamingConventions_ValidFunctionNameSniff::processTokenOutsideScope" must be in lower-case letters only
(#150) Inline comments must end in full-stops, exclamation marks, or question marks
local/codechecker/moodle/Sniffs/NamingConventions/ValidVariableNameSniff.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#49) Protected method name "moodle_Sniffs_NamingConventions_ValidVariableNameSniff::processMemberVar" must be in lower-case letters only
(#83) Protected method name "moodle_Sniffs_NamingConventions_ValidVariableNameSniff::processVariable" must be in lower-case letters only
(#97) Protected method name "moodle_Sniffs_NamingConventions_ValidVariableNameSniff::processVariableInString" must be in lower-case letters only
local/codechecker/moodle/Sniffs/PHP/ForbiddenFunctionsSniff.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#47) This comment is 43% valid code; is this commented out code?
(#47) No space found before comment text; expected "// 'eval' => null, // T_EVAL token." but found "//'eval' => null, // T_EVAL token."
(#48) This comment is 43% valid code; is this commented out code?
(#48) No space found before comment text; expected "// 'goto' => null, // T_GOTO token." but found "//'goto' => null, // T_GOTO token."
local/codechecker/moodle/Sniffs/PHP/ForbiddenGlobalUseSniff.php
(#52) Protected method name "moodle_Sniffs_PHP_ForbiddenGlobalUseSniff::processMemberVar" must be in lower-case letters only
(#52) Variable "phpcsFile" must be all lower-case
(#52) Variable "stackPtr" must be all lower-case
(#59) Protected method name "moodle_Sniffs_PHP_ForbiddenGlobalUseSniff::processVariable" must be in lower-case letters only
(#59) Variable "phpcsFile" must be all lower-case
(#59) Variable "stackPtr" must be all lower-case
(#60) Variable "phpcsFile" must be all lower-case
(#61) Variable "varName" must be all lower-case
(#61) Variable "stackPtr" must be all lower-case
(#63) Variable "varName" must be all lower-case
(#63) Variable "phpcsFile" must be all lower-case
(#63) Variable "stackPtr" must be all lower-case
(#69) Protected method name "moodle_Sniffs_PHP_ForbiddenGlobalUseSniff::processVariableInString" must be in lower-case letters only
(#69) Variable "phpcsFile" must be all lower-case
(#69) Variable "stackPtr" must be all lower-case
(#70) Variable "phpcsFile" must be all lower-case
(#72) Variable "stackPtr" must be all lower-case
(#73) Variable "varName" must be all lower-case
(#74) Variable "varName" must be all lower-case
(#74) Variable "phpcsFile" must be all lower-case
(#74) Variable "stackPtr" must be all lower-case
(#86) Variable "phpcsFile" must be all lower-case
(#86) Variable "stackPtr" must be all lower-case
(#88) Variable "phpcsFile" must be all lower-case
(#88) Variable "stackPtr" must be all lower-case
(#103) Variable "phpcsFile" must be all lower-case
(#103) Variable "stackPtr" must be all lower-case
(#104) Variable "phpcsFile" must be all lower-case
(#112) Variable "stackPtr" must be all lower-case
(#112) Variable "scopePtr" must be all lower-case
(#118) Variable "phpcsFile" must be all lower-case
(#118) Variable "scopePtr" must be all lower-case
(#118) Variable "scopePtr" must be all lower-case
(#123) Variable "phpcsFile" must be all lower-case
(#125) Variable "stackPtr" must be all lower-case
local/codechecker/moodle/Sniffs/PHP/ForbiddenNamesAsInvokedFunctionsSniff.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
local/codechecker/moodle/Sniffs/PHP/ForbiddenTokensSniff.php
(#40) Commas (,) must be followed by white space.
(#61) Variable "phpcsFile" must be all lower-case
(#61) Variable "stackPtr" must be all lower-case
(#63) Variable "phpcsFile" must be all lower-case
(#65) Variable "stackPtr" must be all lower-case
(#66) Variable "phpcsFile" must be all lower-case
(#66) Variable "stackPtr" must be all lower-case
local/codechecker/moodle/Sniffs/PHP/IncludingFileSniff.php
(#60) Variable "emptyTokens" must be all lower-case
(#62) Variable "assignmentTokens" must be all lower-case
local/codechecker/moodle/Sniffs/PHP/MemberVarScopeSniff.php
(#31) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#47) Protected method name "moodle_Sniffs_PHP_MemberVarScopeSniff::processMemberVar" must be in lower-case letters only
(#50) Variable "scopeModifiers" must be all lower-case
(#68) Protected method name "moodle_Sniffs_PHP_MemberVarScopeSniff::processVariable" must be in lower-case letters only
(#80) Protected method name "moodle_Sniffs_PHP_MemberVarScopeSniff::processVariableInString" must be in lower-case letters only
local/codechecker/moodle/Sniffs/Strings/ForbiddenStringsSniff.php
(#46) Variable "phpcsFile" must be all lower-case
(#46) Variable "stackPtr" must be all lower-case
(#48) Variable "phpcsFile" must be all lower-case
(#48) Variable "stackPtr" must be all lower-case
(#49) Variable "phpcsFile" must be all lower-case
(#49) Variable "stackPtr" must be all lower-case
(#50) Variable "phpcsFile" must be all lower-case
(#50) Variable "stackPtr" must be all lower-case
(#62) Variable "phpcsFile" must be all lower-case
(#62) Variable "stackPtr" must be all lower-case
(#63) Variable "phpcsFile" must be all lower-case
(#64) Variable "stackPtr" must be all lower-case
(#68) Variable "phpcsFile" must be all lower-case
(#68) Variable "stackPtr" must be all lower-case
(#81) Variable "phpcsFile" must be all lower-case
(#81) Variable "stackPtr" must be all lower-case
(#82) Variable "phpcsFile" must be all lower-case
(#83) Variable "stackPtr" must be all lower-case
(#97) Variable "phpcsFile" must be all lower-case
(#97) Variable "stackPtr" must be all lower-case
(#113) Variable "phpcsFile" must be all lower-case
(#113) Variable "stackPtr" must be all lower-case
(#114) Variable "phpcsFile" must be all lower-case
(#115) Variable "stackPtr" must be all lower-case
(#117) The use of backticks in strings is not recommended
(#122) Variable "prevString" must be all lower-case
(#122) Variable "phpcsFile" must be all lower-case
(#124) Variable "stackPtr" must be all lower-case
(#125) Variable "prevString" must be all lower-case
(#126) Variable "prevString" must be all lower-case
(#130) Variable "prevToken" must be all lower-case
(#130) Variable "phpcsFile" must be all lower-case
(#132) Variable "prevString" must be all lower-case
(#135) Variable "prevToken" must be all lower-case
(#136) Variable "prevToken" must be all lower-case
(#136) Variable "prevToken" must be all lower-case
(#145) Variable "phpcsFile" must be all lower-case
(#145) Variable "stackPtr" must be all lower-case
local/codechecker/moodle/Sniffs/WhiteSpace/WhiteSpaceInStringsSniff.php
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Line indented incorrectly; expected at least 12 spaces, found 8
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
local/codechecker/moodle/tests/fixtures/generic_functions_openingfunctionbracekerninghanritchie.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#6) Expected 1 space before opening brace; found 0
(#9) Expected 1 space before opening brace; found 0
(#12) Expected 1 space before opening brace; found 3
(#15) Expected 1 space before opening brace; found 3
(#20) Expected 1 space before opening brace; found 0
(#23) Expected 1 space before opening brace; found 0
(#26) Expected 1 space before opening brace; found 3
(#29) Expected 1 space before opening brace; found 3
local/codechecker/moodle/tests/fixtures/generic_whitespace_disallowtabindent.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#9) Spaces must be used to indent lines; tabs are not allowed
(#9) Tab found within whitespace
(#10) Spaces must be used to indent lines; tabs are not allowed
(#10) Tab found within whitespace
(#11) Spaces must be used to indent lines; tabs are not allowed
(#11) Tab found within whitespace
local/codechecker/moodle/tests/fixtures/generic_whitespace_scopeindent.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#6) Line indented incorrectly; expected at least 4 spaces, found 2
(#18) Line indented incorrectly; expected at least 4 spaces, found 2
(#43) Line indented incorrectly; expected at least 8 spaces, found 6
(#50) Line indented incorrectly; expected 8 spaces, found 6
local/codechecker/moodle/tests/fixtures/moodle_comenting_inlinecomment.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#4) 3 slashes comments are not allowed; use "// Comment." instead
(#6) Inline comments must start with a capital letter, digit or 3-dots sequence
(#6) Inline comments must end in full-stops, exclamation marks, or question marks
(#6) 4 slashes comments are not allowed; use "// Comment." instead
(#8) No space found before comment text; expected "// And no-space, uhm, bad, bad!" but found "//And no-space, uhm, bad, bad!"
(#13) Closing brace must be on a line by itself
(#19) Class constants must be uppercase; expected COMMENTED but found commented
(#27) Scope modifier not specified for member variable "$astatic"
(#28) Inline doc block comments are not allowed; use "// Comment." instead
(#29) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#29) Scope modifier not specified for member variable "$avar"
(#32) Visibility must be declared on method "afunction"
(#32) Closing brace must be on a line by itself
(#35) Visibility must be declared on method "afunction"
(#35) Closing brace must be on a line by itself
(#38) Visibility must be declared on method "afunction"
(#38) Closing brace must be on a line by itself
(#44) Inline doc block comments are not allowed; use "// Comment." instead
(#55) Comment separators length must contain 20-120 chars, 19 found
(#57) Comment separators length must contain 20-120 chars, 121 found
(#59) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (no)
(#61) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (.)
(#63) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (.)
(#65) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (.)
(#67) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (.)
(#69) Comment separators must be the unique text in the line, code found before
(#71) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (A.)
(#71) Comment separators length must contain 20-120 chars, 16 found
(#71) Comment separators must be the unique text in the line, code found before
(#73) Perl-style comments are not allowed; use "// Comment." instead
(#75) Inline comments must start with a capital letter, digit or 3-dots sequence
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Inline comments must start with a capital letter, digit or 3-dots sequence
(#78) 3 slashes comments are not allowed; use "// Comment." instead
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Inline doc block type-hinting for '$variable' does not match next code line 'lets_execute_it...'
(#94) Inline doc block type-hinting for '$variable' does not match next code line '$variables...'
(#102) Inline doc block type-hinting for '$cm' does not match next list() variables
(#112) Inline doc block type-hinting for '$cm' does not match next foreach() as variable
local/codechecker/moodle/tests/fixtures/moodle_controlstructures_controlsignature.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#4) Expected "if (...) {\n"; found "if(...) {\n"
(#6) Expected "} else {\n"; found "}else{\n"
local/codechecker/moodle/tests/fixtures/moodle_files_linelength.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#13) Line exceeds 132 characters; contains 133 characters
(#14) Line exceeds 132 characters; contains 133 characters
(#17) Line exceeds 132 characters; contains 180 characters
(#18) Line exceeds 132 characters; contains 180 characters
(#21) Line exceeds maximum limit of 180 characters; contains 181 characters
(#22) Line exceeds maximum limit of 180 characters; contains 181 characters
local/codechecker/moodle/tests/fixtures/moodle_files_moodleinternal/behat/behat_mod_workshop.php
(#40) Closing brace must be on a line by itself
local/codechecker/moodle/tests/fixtures/moodle_files_moodleinternal/declare_ok.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#7) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#8) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#18) Inline doc block comments are not allowed; use "// Comment." instead
(#34) Closing brace must be on a line by itself
local/codechecker/moodle/tests/fixtures/moodle_files_moodleinternal/namespace_ok.php
(#35) Closing brace must be on a line by itself
local/codechecker/moodle/tests/fixtures/moodle_files_moodleinternal/no_moodle_cookie_ok.php
(#2) The opening <?php tag must be followed by exactly one newline.
local/codechecker/moodle/tests/fixtures/moodle_files_moodleinternal/nowarning.php
(#32) Closing brace must be on a line by itself
local/codechecker/moodle/tests/fixtures/moodle_files_moodleinternal/old_style_if_die_ok.php
(#33) Closing brace must be on a line by itself
local/codechecker/moodle/tests/fixtures/moodle_files_moodleinternal/problem.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Inline comments must end in full-stops, exclamation marks, or question marks
(#19) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
local/codechecker/moodle/tests/fixtures/moodle_files_moodleinternal/warning.php
(#32) Expected MOODLE_INTERNAL check or config.php inclusion. Multiple artifacts detected.
(#32) Closing brace must be on a line by itself
(#34) Closing brace must be on a line by itself
local/codechecker/moodle/tests/fixtures/moodle_files_requirelogin/problem.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
local/codechecker/moodle/tests/fixtures/moodle_namingconventions_variablename.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#4) Variable "bad_variable_1" must not contain underscores.
(#5) Variable "badVariable2" must be all lower-case
(#6) Variable "_badvariable3" must not contain underscores.
(#7) Variable "REALLY_badvar4" must be all lower-case
(#7) Variable "REALLY_badvar4" must not contain underscores.
(#12) Member variable "bad_variable" must not contain underscores.
(#13) Member variable "badVariable" must be all lower-case
(#14) Member variable "REALLY_badvar" must be all lower-case
(#14) Member variable "REALLY_badvar" must not contain underscores.
(#17) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#17) Scope modifier not specified for member variable "$badvarusage"
(#20) Variable "badPlaceholder1" must be all lower-case
(#21) Variable "bad_placeholder2" must not contain underscores.
(#22) Variable "REALLY_badplaceholder3" must be all lower-case
(#22) Variable "REALLY_badplaceholder3" must not contain underscores.
local/codechecker/moodle/tests/fixtures/moodle_php_forbidden_global_use.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#16) global $OUTPUT cannot be used in renderers. Use $this->output.
(#17) global $OUTPUT cannot be used in renderers. Use $this->output.
(#21) global $PAGE cannot be used in renderers. Use $this->page.
(#22) global $PAGE cannot be used in renderers. Use $this->page.
(#26) global $OUTPUT cannot be used in renderers. Use $this->output.
(#26) global $PAGE cannot be used in renderers. Use $this->page.
(#27) global $OUTPUT cannot be used in renderers. Use $this->output.
(#27) global $PAGE cannot be used in renderers. Use $this->page.
(#31) global $PAGE cannot be used in renderers. Use $this->page.
(#32) global $PAGE cannot be used in renderers. Use $this->page.
(#38) global $OUTPUT cannot be used in renderers. Use $this->output.
(#39) global $OUTPUT cannot be used in renderers. Use $this->output.
(#56) global $PAGE cannot be used in block classes. Use $this->page.
(#57) global $PAGE cannot be used in block classes. Use $this->page.
local/codechecker/moodle/tests/fixtures/moodle_php_forbiddenfunctions.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) The use of function sizeof() is forbidden; use count() instead
(#6) The use of function delete() is forbidden; use unset() instead
(#8) The use of function error_log() is forbidden
(#9) The use of function print_r() is forbidden
(#10) The use of function print_object() is forbidden
(#12) Inline comments must end in full-stops, exclamation marks, or question marks
(#13) The use of function extract() is forbidden
(#14) The use of function eval() is forbidden
(#15) The use of operator goto is forbidden
(#16) The use of goto labels is forbidden
(#17) The use of goto labels is forbidden
local/codechecker/moodle/tests/fixtures/moodle_php_forbiddennamesasinvokedfunctions.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#7) File is being unconditionally included; use "require" instead
(#8) File is being unconditionally included; use "require_once" instead
(#12) "require" must be immediately followed by an open parenthesis
(#13) "require_once" must be immediately followed by an open parenthesis
(#14) "include" must be immediately followed by an open parenthesis
(#14) File is being unconditionally included; use "require" instead
(#15) "include_once" must be immediately followed by an open parenthesis
(#15) File is being unconditionally included; use "require_once" instead
(#19) 'abstract' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_ABSTRACT)
(#20) 'callable' is a reserved keyword introduced in PHP version 5.4 and cannot be invoked as a function (T_CALLABLE)
(#21) 'catch' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CATCH)
(#22) 'final' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_FINAL)
(#23) 'instanceof' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_INSTANCEOF)
(#24) 'private' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_PRIVATE)
(#25) Inline comments must start with a capital letter, digit or 3-dots sequence
(#25) Inline comments must end in full-stops, exclamation marks, or question marks
(#25) This comment is 50% valid code; is this commented out code?
(#26) 'trait' is a reserved keyword introduced in PHP version 5.4 and cannot be invoked as a function (T_TRAIT)
local/codechecker/moodle/tests/fixtures/moodle_php_forbiddentokens.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) The use of function eval() is forbidden
(#6) The use of operator goto is forbidden
(#8) The use of goto labels is forbidden
(#11) The use of goto labels is forbidden
(#13) The use of backticks for shell execution is forbidden
(#13) The use of backticks for shell execution is forbidden
local/codechecker/moodle/tests/fixtures/moodle_strings_forbiddenstrings.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#8) The use of the AS keyword to alias tables is bad for cross-db
(#10) The use of the AS keyword to alias tables is bad for cross-db
(#11) The use of the AS keyword to alias tables is bad for cross-db
(#15) The use of the /e modifier in regular expressions is forbidden
(#16) preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
(#16) The use of the /e modifier in regular expressions is forbidden
(#19) The use of backticks in strings is not recommended
(#20) The use of backticks in strings is not recommended
(#23) The use of backticks in strings is not recommended
(#23) The use of the AS keyword to alias tables is bad for cross-db
(#23) The use of the /e modifier in regular expressions is forbidden
(#27) preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
(#36) The use of backticks in strings is not recommended
(#37) The use of backticks in strings is not recommended
local/codechecker/moodle/tests/fixtures/pear_whitespace_objectoperatorspacing.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#40) Object operator not indented correctly; expected 4 spaces but found 2
(#41) Object operator not indented correctly; expected 4 spaces but found 2
(#44) Object operator not indented correctly; expected 4 spaces but found 2
(#45) Object operator not indented correctly; expected 4 spaces but found 2
(#49) Object operator not indented correctly; expected 4 spaces but found 6
(#50) Object operator not indented correctly; expected 4 spaces but found 6
(#53) Object operator not indented correctly; expected 4 spaces but found 6
(#54) Object operator not indented correctly; expected 4 spaces but found 6
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
local/codechecker/moodle/tests/fixtures/phpcompatibility_php_deprecatedfunctions.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Extension 'ereg' is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
(#5) Function ereg_replace() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_replace() instead
(#5) Function call_user_method() is deprecated since PHP 5.3 and removed since PHP 7.0; Use call_user_func() instead
(#5) Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
(#5) Function mysql_escape_string() is deprecated since PHP 5.3 and removed since PHP 7.0; Use mysqli::real_escape_string() instead
local/codechecker/moodle/tests/fixtures/phpcompatibility_php_forbiddencalltimepassbyreference.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#6) Call-time pass-by-reference calls are prohibited
(#6) Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
(#7) Call-time pass-by-reference calls are prohibited
(#7) Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
local/codechecker/moodle/tests/fixtures/squiz_php_commentedoutcode.php
(#1) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#2) The opening <?php tag must be followed by exactly one newline.
(#5) Inline comments must start with a capital letter, digit or 3-dots sequence
(#5) Inline comments must end in full-stops, exclamation marks, or question marks
(#5) This comment is 63% valid code; is this commented out code?
(#9) Inline comments must start with a capital letter, digit or 3-dots sequence
(#9) This comment is 54% valid code; is this commented out code?
(#13) Inline comments must end in full-stops, exclamation marks, or question marks
local/codechecker/moodle/tests/fixtures/squiz_whitespace_objectoperatorspacing.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#40) Object operator not indented correctly; expected 4 spaces but found 2
(#41) Object operator not indented correctly; expected 4 spaces but found 2
(#44) Object operator not indented correctly; expected 4 spaces but found 2
(#45) Object operator not indented correctly; expected 4 spaces but found 2
(#49) Object operator not indented correctly; expected 4 spaces but found 6
(#50) Object operator not indented correctly; expected 4 spaces but found 6
(#53) Object operator not indented correctly; expected 4 spaces but found 6
(#54) Object operator not indented correctly; expected 4 spaces but found 6
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
local/codechecker/moodle/tests/fixtures/squiz_whitespace_operatorspacing.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#2) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#6) Expected 1 space before "=>"; 0 found
(#7) Expected 1 space after "=>"; 0 found
(#8) Expected 1 space before "=>"; 0 found
(#8) Expected 1 space after "=>"; 0 found
(#10) Expected 1 space after "=>"; 3 found
(#13) Expected 1 space before "="; 0 found
(#14) Expected 1 space after "="; 0 found
(#15) Expected 1 space before "="; 0 found
(#15) Expected 1 space after "="; 0 found
(#17) Expected 1 space after "="; 2 found
(#21) Expected 1 space before "+"; 0 found
(#22) Expected 1 space after "+"; 0 found
(#23) Expected 1 space before "+"; 0 found
(#23) Expected 1 space after "+"; 0 found
(#25) Expected 1 space after "+"; 2 found
(#26) Expected 1 space before "+"; 2 found
(#28) Expected 1 space before "-"; 0 found
(#29) Expected 1 space after "-"; 0 found
(#30) Expected 1 space before "-"; 0 found
(#30) Expected 1 space after "-"; 0 found
(#32) Expected 1 space after "-"; 2 found
(#33) Expected 1 space before "-"; 2 found
(#35) Expected 1 space before "*"; 0 found
(#36) Expected 1 space after "*"; 0 found
(#37) Expected 1 space before "*"; 0 found
(#37) Expected 1 space after "*"; 0 found
(#39) Expected 1 space after "*"; 2 found
(#40) Expected 1 space before "*"; 2 found
(#42) Expected 1 space before "/"; 0 found
(#43) Expected 1 space after "/"; 0 found
(#44) Expected 1 space before "/"; 0 found
(#44) Expected 1 space after "/"; 0 found
(#46) Expected 1 space after "/"; 2 found
(#47) Expected 1 space before "/"; 2 found
local/codechecker/moodle/tests/moodlestandard_test.php
(#417) Line exceeds 132 characters; contains 134 characters
(#806) Line exceeds 132 characters; contains 143 characters

Javascript coding style problems

(0 errors, 3 warnings)

This section shows the coding style problems detected in the code by eslint [More info]

local/codechecker/moodle/tests/fixtures/moodle_comenting_inlinecomment.js
(#1) Expected space or tab after '//' in comment. (spaced-comment)
(#3) Expected space or tab after '//' in comment. (spaced-comment)
(#5) Expected space or tab after '//' in comment. (spaced-comment)

CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by stylelint [More info]


Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(1 errors, 1 warnings)

This section shows files built by grunt and not commited [More info]

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]