google_forms/phpcs.xml

37 lines
1.3 KiB
XML

<?xml version="1.0"?>
<ruleset name="Custom Ruleset">
<description>Custom ruleset with additional checks for namespaces and unused variables.</description>
<rule ref="PSR12"/>
<rule ref="Squiz.Functions.FunctionDeclaration"/>
<rule ref="PSR12.Namespaces.CompoundNamespaceDepth"/>
<!-- Add Squiz sniffs for enforcing DocBlocks -->
<rule ref="Squiz.Commenting.FunctionComment"/>
<rule ref="Squiz.Commenting.ClassComment"/>
<!-- Check for unused variables -->
<rule ref="Squiz.PHP.DisallowMultipleAssignments"/>
<rule ref="Squiz.PHP.DiscouragedFunctions"/>
<rule ref="Squiz.PHP.NonExecutableCode"/>
<!-- Check for undefined variables -->
<rule ref="Squiz.PHP.DisallowComparisonAssignment"/>
<rule ref="Squiz.PHP.GlobalKeyword"/>
<!-- Add Slevomat sniff for unused variables -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<!-- Check for File_name with Controller-->
<rule ref="Squiz.Classes.ValidClassName"/>
<!-- compares the file -->
<rule ref="Squiz.Classes.ClassFileName"/>
<!-- checks for the file path & the nampespace -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/>
<rule ref="SlevomatCodingStandard.Namespaces.NamespaceDeclaration"/>
</ruleset>