Page MenuHomePhabricator
Paste P5743

TextExtracts PHPCS errors
ActivePublic

Authored by pmiazga on Jul 13 2017, 2:42 PM.
Referenced Files
F8730744: TextExtracts PHPCS errors
Jul 13 2017, 2:42 PM
Subscribers
None
FILE: /home/raynor/Work/wmf/mediawiki/mediawiki/extensions/TextExtracts/tests/phpunit/ExtractFormatterTest.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------
22 | WARNING | Comments should start on new line.
179 | WARNING | Comments should start on new line.
--------------------------------------------------------------------------------------------------------------
FILE: /home/raynor/Work/wmf/mediawiki/mediawiki/extensions/TextExtracts/includes/Hooks.php
-----------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------
13 | ERROR | Doc comment for parameter "&$results" missing
15 | ERROR | Missing parameter comment
15 | ERROR | Doc comment for parameter $results does not match actual variable name &$results
-----------------------------------------------------------------------------------------------
FILE: /home/raynor/Work/wmf/mediawiki/mediawiki/extensions/TextExtracts/includes/ExtractFormatter.php
------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 7 WARNINGS AFFECTING 17 LINES
------------------------------------------------------------------------------------------------------
34 | ERROR | Doc comment for parameter "$text" missing
34 | ERROR | Doc comment for parameter "$plainText" missing
35 | ERROR | Doc comment for parameter $text: does not match actual variable name $text
36 | ERROR | Doc comment for parameter $plainText: does not match actual variable name $plainText
37 | ERROR | Missing parameter comment
53 | ERROR | Missing function doc comment
58 | WARNING | Comments should start on new line.
59 | WARNING | Comments should start on new line.
60 | WARNING | Comments should start on new line.
65 | ERROR | Missing function doc comment
78 | ERROR | Missing parameter comment
79 | ERROR | Missing parameter comment
89 | WARNING | Comments should start on new line.
90 | WARNING | Comments should start on new line.
91 | WARNING | Comments should start on new line.
92 | WARNING | Comments should start on new line.
117 | ERROR | Missing parameter comment
118 | ERROR | Missing parameter comment
------------------------------------------------------------------------------------------------------
FILE: /home/raynor/Work/wmf/mediawiki/mediawiki/extensions/TextExtracts/includes/ApiQueryExtracts.php
-----------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 10 LINES
-----------------------------------------------------------------------------------------------------
61 | ERROR | Missing function doc comment
66 | ERROR | Missing function doc comment
117 | ERROR | Missing function doc comment
275 | ERROR | Missing parameter comment
276 | ERROR | Missing parameter comment
371 | ERROR | Function name "doSection_wiki" should use lower camel case.
376 | ERROR | Function name "doSection_plain" should use lower camel case.
380 | ERROR | Missing function doc comment
414 | ERROR | Missing @return tag in function comment
422 | ERROR | Missing function doc comment
-----------------------------------------------------------------------------------------------------