diff options
Diffstat (limited to 'MLEB/Translate/.phpcs.xml')
-rw-r--r-- | MLEB/Translate/.phpcs.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/MLEB/Translate/.phpcs.xml b/MLEB/Translate/.phpcs.xml new file mode 100644 index 00000000..ad07e67b --- /dev/null +++ b/MLEB/Translate/.phpcs.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<ruleset> + <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"> + <exclude name="Generic.Files.OneObjectStructurePerFile.MultipleFound" /> + <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected"/> + <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic"/> + <exclude name="MediaWiki.Commenting.FunctionComment.WrongStyle" /> + <exclude name="MediaWiki.Commenting.MissingCovers.MissingCovers" /> + <exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" /> + <exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" /> + <exclude name="MediaWiki.Usage.ForbiddenFunctions.escapeshellarg" /> + <exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" /> + <exclude name="Squiz.Scope.MethodScope.Missing" /> + </rule> + <rule ref="Generic.Files.LineLength"> + <exclude-pattern>Translate\.alias\.php</exclude-pattern> + </rule> + <rule ref="MediaWiki.NamingConventions.ValidGlobalName"> + <properties> + <property name="ignoreList" type="array" value="$IP" /> + </properties> + </rule> + <file>.</file> + <arg name="extensions" value="php,php5,inc"/> + <arg name="encoding" value="UTF-8"/> + <exclude-pattern type="relative">^extensions</exclude-pattern> +</ruleset> |