mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 10:48:42 +00:00
build: Enable MediaWiki.Commenting.FunctionComment.MissingReturn
Change-Id: I714220880e91583a6e3cc575810fe02e3e822538
This commit is contained in:
parent
e12651b1c2
commit
9a27f80b3e
|
@ -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();
|
||||
|
|
|
@ -18,6 +18,7 @@ class VisualEditorDataModule extends ResourceLoaderModule {
|
|||
/* Methods */
|
||||
|
||||
/**
|
||||
* @return string JavaScipt code
|
||||
*/
|
||||
public function getScript( ResourceLoaderContext $context ) {
|
||||
$msgInfo = $this->getMessageInfo( $context );
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue