mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-11 16:59:25 +00:00
8f81812242
This is not really anything new. Most code already followed these sniffs. This patch just fixes the remaining exceptions. Also: * Remove PHPDoc blocks that don't add anything but just repeat the strict types. * Remove @file comments in favor of class-level comments. * Add strict types where possible, most notably some `void`. Change-Id: Iff6872dff68170b0fc4e82ac2ba3cad385e8773e
27 lines
798 B
XML
27 lines
798 B
XML
<?xml version="1.0"?>
|
|
<ruleset>
|
|
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
|
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
|
|
</rule>
|
|
|
|
<rule ref="MediaWiki.Commenting.ClassLevelLicense">
|
|
<properties>
|
|
<property name="license" value="GPL-2.0-or-later" />
|
|
</properties>
|
|
</rule>
|
|
<rule ref="Squiz.Strings.DoubleQuoteUsage">
|
|
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar" />
|
|
</rule>
|
|
<rule ref="Squiz.WhiteSpace.FunctionSpacing.AfterLast">
|
|
<severity>5</severity>
|
|
</rule>
|
|
<rule ref="Squiz.WhiteSpace.FunctionSpacing.BeforeFirst">
|
|
<severity>5</severity>
|
|
</rule>
|
|
|
|
<file>.</file>
|
|
<arg name="extensions" value="php" />
|
|
<arg name="encoding" value="UTF-8" />
|
|
<exclude-pattern>.phan/stubs</exclude-pattern>
|
|
</ruleset>
|