build: Enable MediaWiki.Commenting.FunctionComment.MissingReturn

Change-Id: I714220880e91583a6e3cc575810fe02e3e822538
This commit is contained in:
James D. Forrester 2017-05-04 15:15:55 -07:00
parent e12651b1c2
commit 9a27f80b3e
3 changed files with 7 additions and 3 deletions

View file

@ -718,6 +718,8 @@ class VisualEditorHooks {
/**
* Adds extra variables to the page config.
*
* @return bool Always true
*/
public static function onMakeGlobalVariablesScript( array &$vars, OutputPage $out ) {
$pageLanguage = $out->getTitle()->getPageLanguage();
@ -734,6 +736,8 @@ class VisualEditorHooks {
/**
* Adds extra variables to the global config
*
* @return bool Always true
*/
public static function onResourceLoaderGetConfigVars( array &$vars ) {
$coreConfig = RequestContext::getMain()->getConfig();
@ -1054,6 +1058,8 @@ class VisualEditorHooks {
* 5% would, and so on.
*
* To be removed once no longer needed.
*
* @return bool Always true
*/
public static function onLocalUserCreated( $user, $autocreated ) {
$config = RequestContext::getMain()->getConfig();

View file

@ -18,6 +18,7 @@ class VisualEditorDataModule extends ResourceLoaderModule {
/* Methods */
/**
* @return string JavaScipt code
*/
public function getScript( ResourceLoaderContext $context ) {
$msgInfo = $this->getMessageInfo( $context );

View file

@ -20,9 +20,6 @@
<rule ref="MediaWiki.Commenting.FunctionComment.MissingParamName">
<severity>0</severity>
</rule>
<rule ref="MediaWiki.Commenting.FunctionComment.MissingReturn">
<severity>0</severity>
</rule>
<rule ref="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment">
<severity>0</severity>
</rule>