: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<description>Saltus Coding Standards.</description>
<exclude-pattern>*/phpunit.xml*</exclude-pattern>
<exclude-pattern>*/languages/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>lib/*</exclude-pattern>
<rule ref="WordPress-Extra">
<!-- Ignore lowercase filenames -->
<exclude name="Generic.Files.LowercasedFilename.NotFound"/>
<!-- Do not enforce 'class-' prefix and hyffens -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<!-- # WP VIP: Generates too many false positives -->
<exclude name="WordPress.WP.CapitalPDangit.Misspelled"/>
<exclude name="WordPress.WP.CapitalPDangit.MisspelledInComment"/>
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<exclude name="PEAR.Functions.FunctionCallSignature.requiredSpacesAfterOpen"/>
<exclude name="PEAR.Functions.FunctionCallSignature.requiredSpacesBeforeClose"/>
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
<exclude name="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma"/>
<!-- Allow ternary forms -->
<exclude name="Universal.Operators.DisallowShortTernary.Found"/>
<!-- Prefer [] instead of array() -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found"/>
<exclude name="Generic.Arrays.DisallowLongArraySyntax.Found"/>
<exclude name="PSR2.Classes.ClassDeclaration.ImplementsLine"/>
<exclude name="PSR2.Classes.ClassDeclaration.ExtendsLine"/>
<!-- Add extra word delimiter for hooks. -->
<rule ref="WordPress.NamingConventions.ValidHookName">
<property name="additionalWordDelimiters" value="/"/>
<!-- # from yoast: https://github.com/Yoast/yoastcs/blob/develop/Yoast/ruleset.xml -->
<!-- If a conscious choice has been made for a non-strict comparison, that's ok.
I.e. when `strict` has been explicitely set to `false` in an array comparison,
<exclude name="WordPress.PHP.StrictInArray.FoundNonStrictFalse"/>
<!-- In contrast to WPCS: disallow Yoda conditions. (PHPCS 3.5.0) -->
<rule ref="Generic.ControlStructures.DisallowYodaConditions"/>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<property name="complexity" value="10"/>
<property name="absoluteComplexity" value="20"/>
<rule ref="PHPCompatibility"/>
<!-- phpcs parameters -->
<arg name="extensions" value="php" />
<arg name="encoding" value="UTF-8" />
<arg name="parallel" value="12"/>
<config name="testVersion" value="7.0-"/>
<config name="installed_paths" value="/srv/dev/coding_standards/wpcs/,/srv/dev/coding_standards/PHPCSUtils/,/srv/dev/coding_standards/PHPCSExtra/,/srv/dev/coding_standards/PHPCompatibility" />