Skip to content
Snippets Groups Projects
Commit 281d0ec3 authored by Mateusz Gbiorczyk's avatar Mateusz Gbiorczyk
Browse files

feat: Updated rules for PHPCS

parent 2477cb7f
No related branches found
No related tags found
1 merge request!5Feature/phpcs editorconfig
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for WP Desk Plugin"> <ruleset name="WordPress Coding Standards for WP Desk Plugin">
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility,vendor/wp-coding-standards/wpcs" />
<config name="testVersion" value="7.0-" />
<config name="text_domain" value="enter-plugin-text-domain-here" /> <config name="text_domain" value="enter-plugin-text-domain-here" />
<exclude-pattern>tests/*</exclude-pattern> <arg name="extensions" value="php" />
<exclude-pattern>scoper.inc.php</exclude-pattern>
<file>./src</file>
<file>./templates</file>
<rule ref="WPDeskPlugin"/> <rule ref="PHPCompatibility" />
<rule ref="WordPress" />
<rule ref="WordPress-Extra">
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop" />
<exclude name="Squiz.Commenting.FunctionComment.EmptyThrows" />
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.WrongNumber" />
<exclude name="Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure" />
<exclude name="WordPress.CodeAnalysis.AssignmentInCondition.Found" />
<exclude name="WordPress.Files.FileName" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.PHP.DisallowShortTernary" />
<exclude name="WordPress.PHP.YodaConditions" />
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict" />
<exclude name="WordPress.WP.AlternativeFunctions" />
<exclude name="WordPress.WP.CronInterval.ChangeDetected" />
</rule>
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>./src</exclude-pattern>
</rule>
</ruleset> </ruleset>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment