<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
<exclude name="MediaWiki.Commenting.FunctionComment.ExtraParamComment" />
+ <exclude name="MediaWiki.Commenting.FunctionComment.DefaultNullTypeParam" />
<exclude name="MediaWiki.Commenting.FunctionComment.WrongStyle" />
+ <exclude name="MediaWiki.Commenting.PhpunitAnnotations.NotClassTrait" />
<exclude name="MediaWiki.Commenting.IllegalSingleLineComment.IllegalSingleLineCommentStart" />
<exclude name="MediaWiki.Commenting.IllegalSingleLineComment.IllegalSingleLineCommentEnd" />
<exclude name="MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures" />
<rule ref="MediaWiki.Usage.AssignmentInReturn.AssignmentInReturn">
<exclude-pattern>*/tests/phpunit/*\.php</exclude-pattern>
</rule>
+ <rule ref="MediaWiki.Usage.ForbiddenFunctions.escapeshellarg">
+ <!--
+ Whitelist existing violations, but enable the sniff to prevent
+ any new occurrences.
+ -->
+ <exclude-pattern>*/includes/libs/filebackend/FSFileBackend\.php</exclude-pattern>
+ <exclude-pattern>*/includes/shell/Command\.php</exclude-pattern>
+ <exclude-pattern>*/includes/shell/Shell\.php</exclude-pattern>
+ <exclude-pattern>*/tests/phpunit/structure/StructureTest\.php</exclude-pattern>
+ </rule>
+ <rule ref="MediaWiki.Usage.ForbiddenFunctions.exec">
+ <!--
+ Whitelist existing violations, but enable the sniff to prevent
+ any new occurrences.
+ -->
+ <exclude-pattern>*/tests/phpunit/structure/StructureTest\.php</exclude-pattern>
+ </rule>
+ <rule ref="MediaWiki.Usage.ForbiddenFunctions.popen">
+ <!--
+ Whitelist existing violations, but enable the sniff to prevent
+ any new occurrences.
+ -->
+ <exclude-pattern>*/includes/GlobalFunctions\.php</exclude-pattern>
+ <exclude-pattern>*/includes/libs/filebackend/FSFileBackend\.php</exclude-pattern>
+ <exclude-pattern>*/maintenance/7zip\.inc</exclude-pattern>
+ <exclude-pattern>*/maintenance/populateImageSha1\.php</exclude-pattern>
+ </rule>
+ <rule ref="MediaWiki.Usage.ForbiddenFunctions.proc_open">
+ <!--
+ Whitelist existing violations, but enable the sniff to prevent
+ any new occurrences.
+ -->
+ <exclude-pattern>includes/export/DumpPipeOutput\.php</exclude-pattern>
+ <exclude-pattern>includes/resourceloader/ResourceLoaderImage\.php</exclude-pattern>
+ <exclude-pattern>includes/shell/Command\.php</exclude-pattern>
+ <exclude-pattern>includes/tidy/RaggettExternal\.php</exclude-pattern>
+ <exclude-pattern>maintenance/dumpTextPass\.php</exclude-pattern>
+ <exclude-pattern>maintenance/mysql\.php</exclude-pattern>
+ <exclude-pattern>maintenance/storage/recompressTracked\.php</exclude-pattern>
+ <exclude-pattern>tests/parser/editTests\.php</exclude-pattern>
+ </rule>
+ <rule ref="MediaWiki.Usage.ForbiddenFunctions.shell_exec">
+ <!--
+ Whitelist existing violations, but enable the sniff to prevent
+ any new occurrences.
+ -->
+ <exclude-pattern>*/maintenance/mwdocgen\.php</exclude-pattern>
+ <exclude-pattern>*/maintenance/updateCredits\.php</exclude-pattern>
+ </rule>
+ <rule ref="MediaWiki.Usage.ForbiddenFunctions.system">
+ <!--
+ Whitelist existing violations, but enable the sniff to prevent
+ any new occurrences.
+ -->
+ <exclude-pattern>*/maintenance/mwdocgen\.php</exclude-pattern>
+ </rule>
<file>.</file>
<arg name="encoding" value="UTF-8"/>
<arg name="extensions" value="php,php5,inc,sample"/>
"jakub-onderka/php-parallel-lint": "0.9.2",
"jetbrains/phpstorm-stubs": "dev-master#1b9906084d6635456fcf3f3a01f0d7d5b99a578a",
"justinrainbow/json-schema": "~5.2",
- "mediawiki/mediawiki-codesniffer": "18.0.0",
+ "mediawiki/mediawiki-codesniffer": "20.0.0",
"monolog/monolog": "~1.22.1",
"nikic/php-parser": "3.1.3",
"nmred/kafka-php": "0.1.5",