build: Enable MediaWiki.Commenting.FunctionComment.MissingParamTag

Change-Id: Ia6d758bebd45d31143a3dfd3357cc4687449a1cb
This commit is contained in:
James D. Forrester 2017-05-04 15:35:14 -07:00
parent 59715b66c2
commit 2a81a95782
3 changed files with 8 additions and 3 deletions

View file

@ -722,6 +722,8 @@ class VisualEditorHooks {
/**
* Adds extra variables to the page config.
*
* @param array &$vars
* @param OutputPage $out
* @return bool Always true
*/
public static function onMakeGlobalVariablesScript( array &$vars, OutputPage $out ) {
@ -740,6 +742,7 @@ class VisualEditorHooks {
/**
* Adds extra variables to the global config
*
* @param array &$vars
* @return bool Always true
*/
public static function onResourceLoaderGetConfigVars( array &$vars ) {
@ -1013,6 +1016,8 @@ class VisualEditorHooks {
/**
* Ensures that we know whether we're running inside a parser test.
*
* @param array &$settings
*/
public static function onParserTestGlobals( array &$settings ) {
$settings['wgVisualEditorInParserTests'] = true;
@ -1063,6 +1068,8 @@ class VisualEditorHooks {
*
* To be removed once no longer needed.
*
* @param User $user
* @param bool $autocreated
* @return bool Always true
*/
public static function onLocalUserCreated( $user, $autocreated ) {

View file

@ -18,6 +18,7 @@ class VisualEditorDataModule extends ResourceLoaderModule {
/* Methods */
/**
* @param ResourceLoaderContext $context
* @return string JavaScipt code
*/
public function getScript( ResourceLoaderContext $context ) {

View file

@ -11,9 +11,6 @@
<rule ref="MediaWiki.Commenting.FunctionComment.Missing.Protected">
<severity>0</severity>
</rule>
<rule ref="MediaWiki.Commenting.FunctionComment.MissingParamTag">
<severity>0</severity>
</rule>
<rule ref="MediaWiki.Commenting.FunctionComment.MissingParamComment">
<severity>0</severity>
</rule>