7 | ERROR | [ ] Missing function doc comment | | (MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic) 11 | ERROR | [ ] Missing function doc comment | | (MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic) 18 | WARNING | [x] Doc comments must not end with multiple empty lines | | (MediaWiki.Commenting.FunctionComment.EmptyLinesEnd) 18 | ERROR | [ ] Missing return type or @return tag in function comment | | (MediaWiki.Commenting.FunctionComment.MissingReturn) 26 | WARNING | [x] Doc comments must not end with multiple empty lines | | (MediaWiki.Commenting.FunctionComment.EmptyLinesEnd) 26 | ERROR | [ ] Missing return type or @return tag in function comment | | (MediaWiki.Commenting.FunctionComment.MissingReturn) 32 | WARNING | [x] Expected 1 spaces after parameter name; 2 found | | (MediaWiki.Commenting.FunctionComment.SpacingAfterParamName) 33 | WARNING | [x] Expected 1 spaces after parameter name; 8 found | | (MediaWiki.Commenting.FunctionComment.SpacingAfterParamName) 41 | ERROR | [x] Short type of "bool" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.NotShortBoolParam) 43 | ERROR | [x] Short type of "int" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.NotShortIntParam) 44 | ERROR | [x] Short type of "bool" should be used for @return tag | | (MediaWiki.Commenting.FunctionComment.NotShortBoolReturn) 51 | ERROR | [x] Short type of "int" should be used for @return tag | | (MediaWiki.Commenting.FunctionComment.NotShortIntReturn) 60 | ERROR | [ ] Missing return type or @return tag in function comment | | (MediaWiki.Commenting.FunctionComment.MissingReturn) 72 | ERROR | [x] Short type of "bool" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.NotShortBoolParam) 73 | ERROR | [x] Short type of "int" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.NotShortIntParam) 74 | ERROR | [x] Short type of "bool" should be used for @return tag | | (MediaWiki.Commenting.FunctionComment.NotShortBoolReturn) 81 | ERROR | [x] Short type of "bool[]" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.NotShortBoolArrayParam) 82 | ERROR | [x] Short type of "int[]" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.NotShortIntArrayParam) 83 | ERROR | [x] Short type of "bool[]" should be used for @return tag | | (MediaWiki.Commenting.FunctionComment.NotShortBoolArrayReturn) 90 | ERROR | [x] Short type of "bool" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.NotShortBoolParam) 91 | ERROR | [x] Short type of "int" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.NotShortIntParam) 91 | ERROR | [x] Short type of "bool" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.NotShortBoolParam) 92 | ERROR | [x] Short type of "bool" should be used for @return tag | | (MediaWiki.Commenting.FunctionComment.NotShortBoolReturn) 92 | ERROR | [x] Short type of "int" should be used for @return tag | | (MediaWiki.Commenting.FunctionComment.NotShortIntReturn) 99 | WARNING | [x] Expected 1 spaces before parameter type; 2 found | | (MediaWiki.Commenting.FunctionComment.SpacingBeforeParamType) 99 | WARNING | [x] Expected 1 spaces after parameter type; 4 found | | (MediaWiki.Commenting.FunctionComment.SpacingAfterParamType) 99 | WARNING | [x] Expected 1 spaces after parameter name; 4 found | | (MediaWiki.Commenting.FunctionComment.SpacingAfterParamName) 100 | WARNING | [x] Expected 1 spaces before parameter type; 4 found | | (MediaWiki.Commenting.FunctionComment.SpacingBeforeParamType) 100 | WARNING | [x] Expected 1 spaces after parameter type; 4 found | | (MediaWiki.Commenting.FunctionComment.SpacingAfterParamType) 100 | WARNING | [x] Expected 1 spaces after parameter name; 4 found | | (MediaWiki.Commenting.FunctionComment.SpacingAfterParamName) 101 | WARNING | [x] Expected 1 spaces before return type; 4 found | | (MediaWiki.Commenting.FunctionComment.SpacingBeforeReturnType) 101 | WARNING | [x] Expected 1 spaces after return type; 4 found | | (MediaWiki.Commenting.FunctionComment.SpacingAfterReturnType) 102 | WARNING | [x] Expected 1 spaces before exception type; 4 found | | (MediaWiki.Commenting.FunctionComment.SpacingBeforeExceptionType) 102 | WARNING | [x] Expected 1 spaces after exception type; 4 found | | (MediaWiki.Commenting.FunctionComment.SpacingAfterExceptionType) 108 | ERROR | [ ] Doc comment for parameter "$aBool" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 108 | ERROR | [ ] Doc comment for parameter "$anInt" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 109 | WARNING | [x] Use @param annotation instead of @params | | (MediaWiki.Commenting.FunctionAnnotations.NonNormalizedAnnotation) 110 | WARNING | [x] Use @param annotation instead of @params | | (MediaWiki.Commenting.FunctionAnnotations.NonNormalizedAnnotation) 111 | WARNING | [x] Use @return annotation instead of @returns | | (MediaWiki.Commenting.FunctionAnnotations.NonNormalizedAnnotation) 112 | WARNING | [x] Use @throws annotation instead of @throw | | (MediaWiki.Commenting.FunctionAnnotations.NonNormalizedAnnotation) 113 | ERROR | [ ] Missing return type or @return tag in function comment | | (MediaWiki.Commenting.FunctionComment.MissingReturn) 119 | ERROR | [x] Param name should not end with punctuation ":" | | (MediaWiki.Commenting.FunctionComment.NotPunctuationParamName) 119 | ERROR | [x] Param name should not be wrapped in parenthesis; [ and ] found | | (MediaWiki.Commenting.FunctionComment.NotParenthesisParamName) 119 | ERROR | [x] Param type should not be wrapped in parenthesis; { and } found | | (MediaWiki.Commenting.FunctionComment.NotParenthesisParamType) 120 | ERROR | [x] Param name should not end with punctuation ":" | | (MediaWiki.Commenting.FunctionComment.NotPunctuationParamName) 120 | ERROR | [x] Param name should not be wrapped in parenthesis; { and } found | | (MediaWiki.Commenting.FunctionComment.NotParenthesisParamName) 120 | ERROR | [x] Param type should not be wrapped in parenthesis; [ and ] found | | (MediaWiki.Commenting.FunctionComment.NotParenthesisParamType) 121 | ERROR | [x] Param name should not end with punctuation ":" | | (MediaWiki.Commenting.FunctionComment.NotPunctuationParamName) 121 | ERROR | [x] Param name should not be wrapped in parenthesis; [ and ] found | | (MediaWiki.Commenting.FunctionComment.NotParenthesisParamName) 122 | ERROR | [x] Return type should not end with punctuation ":" | | (MediaWiki.Commenting.FunctionComment.NotPunctuationReturnType) 122 | ERROR | [x] Return type should not be wrapped in parenthesis; { and } found | | (MediaWiki.Commenting.FunctionComment.NotParenthesisReturnType) 123 | ERROR | [x] Exception type should not be wrapped in parenthesis; { and } found | | (MediaWiki.Commenting.FunctionComment.NotParenthesisExceptionType) 130 | WARNING | [x] Use @inheritDoc annotation instead of @inheritdoc | | (MediaWiki.Commenting.FunctionAnnotations.NonNormalizedAnnotation) 143 | ERROR | [ ] Doc comment for parameter "$in" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 143 | ERROR | [ ] Doc comment for parameter "$out" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 143 | ERROR | [ ] Doc comment for parameter "$inOut" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 144 | WARNING | [x] Use @param annotation instead of @param[in] | | (MediaWiki.Commenting.FunctionAnnotations.NonNormalizedAnnotation) 145 | WARNING | [x] Use @param annotation instead of @param[out] | | (MediaWiki.Commenting.FunctionAnnotations.NonNormalizedAnnotation) 146 | WARNING | [x] Use @param annotation instead of @param[in,out] | | (MediaWiki.Commenting.FunctionAnnotations.NonNormalizedAnnotation) 158 | ERROR | [ ] Splat operator missing for documented variadic parameter "$params,..." | | (MediaWiki.Commenting.FunctionComment.MissingSplatVariadicArg) 158 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 158 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 166 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 166 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 174 | ERROR | [ ] Splat operator missing for documented variadic parameter "...$params" | | (MediaWiki.Commenting.FunctionComment.MissingSplatVariadicArg) 174 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 174 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 182 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 182 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 190 | ERROR | [ ] Splat operator missing for documented variadic parameter "$params,..." | | (MediaWiki.Commenting.FunctionComment.MissingSplatVariadicArg) 206 | ERROR | [ ] Splat operator missing for documented variadic parameter "...$params" | | (MediaWiki.Commenting.FunctionComment.MissingSplatVariadicArg) 220 | ERROR | [ ] Variadic parameter documented but not present in the signature | | (MediaWiki.Commenting.FunctionComment.VariadicDocNotSignature) 222 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 222 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 227 | ERROR | [ ] Variadic parameter documented but not present in the signature | | (MediaWiki.Commenting.FunctionComment.VariadicDocNotSignature) 229 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 229 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 234 | ERROR | [ ] Variadic parameter documented but not present in the signature | | (MediaWiki.Commenting.FunctionComment.VariadicDocNotSignature) 236 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 236 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 241 | ERROR | [ ] Variadic parameter documented but not present in the signature | | (MediaWiki.Commenting.FunctionComment.VariadicDocNotSignature) 243 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 243 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 246 | ERROR | [ ] Doc comment for parameter "...$params" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 254 | ERROR | [ ] Variadic parameter documented but not present in the signature | | (MediaWiki.Commenting.FunctionComment.VariadicDocNotSignature) 256 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 256 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 256 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 261 | ERROR | [ ] Variadic parameter documented but not present in the signature | | (MediaWiki.Commenting.FunctionComment.VariadicDocNotSignature) 263 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 263 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 263 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 267 | WARNING | [x] Expected 1 spaces after parameter type; 9 found | | (MediaWiki.Commenting.FunctionComment.SpacingAfterParamType) 273 | WARNING | [x] Expected 1 spaces after parameter type; 9 found | | (MediaWiki.Commenting.FunctionComment.SpacingAfterParamType) 273 | ERROR | [ ] Variadic parameter documented but not present in the signature | | (MediaWiki.Commenting.FunctionComment.VariadicDocNotSignature) 280 | ERROR | [x] Default of null should be declared in @param tag | | (MediaWiki.Commenting.FunctionComment.DefaultNullTypeParam) 289 | ERROR | [x] Key word "[optional]" on "string[optional]" should not be used | | (MediaWiki.Commenting.FunctionComment.NoOptionalKeyWord) 290 | ERROR | [x] Key word "[optional]" on "string[optional]|null" should not be used | | (MediaWiki.Commenting.FunctionComment.NoOptionalKeyWord) 296 | ERROR | [ ] Superfluous parameter comment | | (MediaWiki.Commenting.FunctionComment.ExtraParamComment) 302 | ERROR | [ ] Variadic parameter documented but not present in the signature | | (MediaWiki.Commenting.FunctionComment.VariadicDocNotSignature) 307 | ERROR | [ ] Missing function doc comment | | (MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate) 311 | ERROR | [ ] Doc comment for parameter "$refMatch" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 312 | ERROR | [x] Pass-by-reference for parameter $refDoc does not match pass-by-reference of | | variable name $refDoc | | (MediaWiki.Commenting.FunctionComment.ParamPassByReference) 313 | ERROR | [x] Pass-by-reference for parameter $refReal does not match pass-by-reference of | | variable name $refReal | | (MediaWiki.Commenting.FunctionComment.ParamPassByReference) 314 | ERROR | [x] Pass-by-reference for parameter $refDoesNotMatch does not match | | pass-by-reference of variable name $refMatch | | (MediaWiki.Commenting.FunctionComment.ParamPassByReference) 314 | ERROR | [ ] Doc comment for parameter $refDoesNotMatch does not match actual variable name | | $refMatch (MediaWiki.Commenting.FunctionComment.ParamNameNoMatch) 315 | ERROR | [x] Pass-by-reference for parameter $refNull does not match pass-by-reference of | | variable name $refNull | | (MediaWiki.Commenting.FunctionComment.ParamPassByReference) 315 | ERROR | [x] Default of null should be declared in @param tag | | (MediaWiki.Commenting.FunctionComment.DefaultNullTypeParam) 321 | ERROR | [x] Pass-by-reference for parameter $refDoc does not match pass-by-reference of | | variable name ...$refDoc | | (MediaWiki.Commenting.FunctionComment.ParamPassByReference) 327 | ERROR | [x] Pass-by-reference for parameter $refReal does not match pass-by-reference of | | variable name ...$refReal | | (MediaWiki.Commenting.FunctionComment.ParamPassByReference) 332 | ERROR | [ ] Doc comment for parameter "$arg" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 332 | ERROR | [ ] Missing parameter type (MediaWiki.Commenting.FunctionComment.MissingParamType) 336 | ERROR | [ ] Return type missing for @return tag in function comment | | (MediaWiki.Commenting.FunctionComment.MissingReturnType) 341 | ERROR | [ ] Exception type missing for @throws tag in function comment | | (MediaWiki.Commenting.FunctionComment.InvalidThrows) 346 | ERROR | [x] Lowercase type of "int" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.UppercasePrimitiveIntParam) 352 | ERROR | [x] Lowercase type of "string[]" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.UppercasePrimitiveStringArrayParam) 358 | WARNING | [ ] `object` should rarely be used as a typehint. If more specific types are | | known, list them. If only plain anonymous objects are expected, use | | `stdClass`. If the intent is indeed to allow any object, mark it with a // | | phpcs:… comment or set this rule's to 0. | | (MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam) 359 | WARNING | [ ] `object` should rarely be used as a typehint. If more specific types are | | known, list them. If only plain anonymous objects are expected, use | | `stdClass`. If the intent is indeed to allow any object, mark it with a // | | phpcs:… comment or set this rule's to 0. | | (MediaWiki.Commenting.FunctionComment.ObjectTypeHintReturn) 359 | ERROR | [x] Lowercase type of "object[]" should be used for @return tag | | (MediaWiki.Commenting.FunctionComment.UppercasePrimitiveObjectArrayReturn) 380 | ERROR | [ ] Only 1 @return tag is allowed in a function comment | | (MediaWiki.Commenting.FunctionComment.DuplicateReturn) 384 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 386 | ERROR | [ ] Missing function doc comment | | (MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic) 389 | ERROR | [ ] Doc comment for parameter "$notsamecase" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 391 | ERROR | [ ] Doc comment for parameter $notSameCase does not match case of actual variable | | name $notsamecase (MediaWiki.Commenting.FunctionComment.ParamNameNoCaseMatch) 397 | ERROR | [x] Short type of "bool" should be used for @return tag | | (MediaWiki.Commenting.FunctionComment.NotShortBoolReturn) 401 | WARNING | [x] Doc comment must not be empty | | (MediaWiki.Commenting.FunctionComment.EmptyComment) 406 | ERROR | [x] Short type of "int" should be used for @param tag | | (MediaWiki.Commenting.FunctionComment.NotShortIntParam) 410 | ERROR | [ ] Doc comment for parameter "$b" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 496 | ERROR | [ ] Missing function doc comment | | (MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic) 500 | ERROR | [ ] Missing function doc comment | | (MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic) 504 | ERROR | [ ] Missing function doc comment | | (MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic) 523 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 527 | ERROR | [ ] Expected parameter type before parameter name "$parser" | | (MediaWiki.Commenting.FunctionComment.NoParamType) 528 | ERROR | [ ] Expected parameter type before parameter name "$operator:" | | (MediaWiki.Commenting.FunctionComment.NoParamType) 528 | ERROR | [x] Param name should not end with punctuation ":" | | (MediaWiki.Commenting.FunctionComment.NotPunctuationParamName) 529 | ERROR | [ ] Expected parameter type before parameter name "$oldtext" | | (MediaWiki.Commenting.FunctionComment.NoParamType) 529 | ERROR | [x] Default of null should be declared in @param tag | | (MediaWiki.Commenting.FunctionComment.DefaultNullTypeParam) 644 | ERROR | [ ] Doc comment for parameter "$b" missing | | (MediaWiki.Commenting.FunctionComment.MissingParamTag) 647 | WARNING | [x] Use @param annotation instead of @parma | | (MediaWiki.Commenting.FunctionAnnotations.NonNormalizedAnnotation) 657 | ERROR | [ ] You must use "/**" style comments for a function comment | | (MediaWiki.Commenting.FunctionComment.WrongStyle) 662 | ERROR | [ ] You must use "/**" style comments for a function comment | | (MediaWiki.Commenting.FunctionComment.WrongStyle) 686 | WARNING | [x] Doc comment must not be empty | | (MediaWiki.Commenting.FunctionComment.EmptyComment) 692 | WARNING | [x] Doc comments must not start with multiple empty lines | | (MediaWiki.Commenting.FunctionComment.EmptyLinesStart) 702 | WARNING | [x] Doc comments must not end with multiple empty lines | | (MediaWiki.Commenting.FunctionComment.EmptyLinesEnd) 706 | WARNING | [x] Doc comments must not start with multiple empty lines | | (MediaWiki.Commenting.FunctionComment.EmptyLinesStart) 710 | WARNING | [x] Doc comments must not end with multiple empty lines | | (MediaWiki.Commenting.FunctionComment.EmptyLinesEnd) PHPCBF CAN FIX THE 74 MARKED SNIFF VIOLATIONS AUTOMATICALLY