mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-13 17:51:35 +00:00
8f054de250
The following sniffs are failing and were disabled: * Generic.ControlStructures.DisallowYodaConditions.Found * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate * MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage * MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage Additional changes: * Dropped .inc files from .phpcs.xml (T200956). * Added the `wikimedia/mediawiki` profile in .eslintrc.json (T262222). * Added the `wikimedia/jquery` profile in .eslintrc.json (T262222). * Removed global `$`, included in the `wikimedia/jquery` profile (T262222). * Removed global `mw`, included via `wikimedia/mediawiki` profile (T262222). * Dropped the emtpy global definition in .eslintrc.json. Change-Id: I4ace90c3162ca94e401d80d9d68f278c6a2e9960
17 lines
767 B
XML
17 lines
767 B
XML
<?xml version="1.0"?>
|
|
<ruleset>
|
|
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
|
<exclude name="Generic.ControlStructures.DisallowYodaConditions.Found" />
|
|
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
|
|
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
|
|
<exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage" />
|
|
<exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage" />
|
|
<exclude name="Squiz.PHP.NonExecutableCode.Unreachable" />
|
|
<exclude name="Squiz.Scope.MethodScope.Missing" />
|
|
</rule>
|
|
<file>.</file>
|
|
<arg name="extensions" value="php" />
|
|
<arg name="encoding" value="UTF-8" />
|
|
<exclude-pattern>vendor</exclude-pattern>
|
|
</ruleset>
|