mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
build: Enable MediaWiki.Commenting.FunctionComment.MissingParamTag
Change-Id: Ia6d758bebd45d31143a3dfd3357cc4687449a1cb
This commit is contained in:
parent
59715b66c2
commit
2a81a95782
|
@ -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 ) {
|
||||
|
|
|
@ -18,6 +18,7 @@ class VisualEditorDataModule extends ResourceLoaderModule {
|
|||
/* Methods */
|
||||
|
||||
/**
|
||||
* @param ResourceLoaderContext $context
|
||||
* @return string JavaScipt code
|
||||
*/
|
||||
public function getScript( ResourceLoaderContext $context ) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue