google_forms/phpcs.xml

37 lines
1.3 KiB
XML
Raw Normal View History

2024-08-08 06:12:40 +00:00
<?xml version="1.0"?>
<ruleset name="Custom Ruleset">
2024-08-21 06:34:30 +00:00
<description>Custom ruleset with additional checks for namespaces and unused variables.</description>
2024-08-08 06:12:40 +00:00
<rule ref="PSR12"/>
2024-08-21 06:34:30 +00:00
<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"/>
2024-08-08 06:12:40 +00:00
</ruleset>
2024-08-21 06:34:30 +00:00