diff options
Diffstat (limited to 'MLEB/Translate/.phpcs.xml')
-rw-r--r-- | MLEB/Translate/.phpcs.xml | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/MLEB/Translate/.phpcs.xml b/MLEB/Translate/.phpcs.xml index c89c3bf8..c41cf603 100644 --- a/MLEB/Translate/.phpcs.xml +++ b/MLEB/Translate/.phpcs.xml @@ -11,15 +11,13 @@ <exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected" /> <exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingVar" /> <exclude name="MediaWiki.Commenting.PropertyDocumentation.WrongStyle" /> - <exclude name="MediaWiki.PHPUnit.AssertCount.NotUsed" /> <exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage" /> <exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" /> - <exclude name="PSR2.Classes.PropertyDeclaration.Multiple" /> </rule> <rule ref="Generic.Files.LineLength"> <exclude-pattern>Translate\.alias\.php</exclude-pattern> <exclude-pattern>Translate\.i18n\.magic\.php</exclude-pattern> - <exclude-pattern>Translate/tests/phpunit/data/Example*\.php</exclude-pattern> + <exclude-pattern>*/tests/phpunit/data/Example*\.php</exclude-pattern> </rule> <rule ref="MediaWiki.NamingConventions.ValidGlobalName"> <properties> @@ -28,15 +26,13 @@ </rule> <!-- New code uses parameter and return type hints. Repeating them in tags adds no additional value. --> <rule ref="MediaWiki.Commenting.FunctionComment.MissingParamTag"> - <!-- exclude pattern here does not support relative path and CI exclude this for the whole repo --> - <exclude-pattern>Translate/src/</exclude-pattern> - <exclude-pattern>Translate/tests/</exclude-pattern> + <exclude-pattern>*/src/*</exclude-pattern> + <exclude-pattern>*/tests/*</exclude-pattern> </rule> <!-- Same as above. No idea why it is named without "Tag". --> <rule ref="MediaWiki.Commenting.FunctionComment.MissingReturn"> - <!-- exclude pattern here does not support relative path and CI exclude this for the whole repo --> - <exclude-pattern>Translate/src/</exclude-pattern> - <exclude-pattern>Translate/tests/</exclude-pattern> + <exclude-pattern>*/src/*</exclude-pattern> + <exclude-pattern>*/tests/*</exclude-pattern> </rule> <rule ref="MediaWiki.Files.ClassMatchesFilename.NotMatch"> <exclude-pattern>tests/|ttmserver/|scripts/|Message\.php</exclude-pattern> @@ -58,12 +54,6 @@ <property name="maxLinesCountBeforeWithoutComment" value="0"/> </properties> </rule> - <!-- Remove once decision has been made on: https://phabricator.wikimedia.org/T220719 --> - <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"> - <properties> - <property name="spacesCountBeforeColon" value="0"/> - </properties> - </rule> <rule ref="SlevomatCodingStandard.Commenting.RequireOneLineDocComment" /> <rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces" /> </ruleset> |