From 24ebe92029ad12ee1b180df7b0927c8986571035 Mon Sep 17 00:00:00 2001 From: owaisahmed5300 Date: Wed, 26 Nov 2025 11:57:51 +0500 Subject: [PATCH] feat(ruleset): modernize class structure and replace legacy commenting sniffs - Update ClassStructure to enforce grouping for PHPUnit fixtures and DI methods. - Disable rigid Squiz commenting sniffs; reliance shifted to Slevomat and types. - Allow fully qualified global functions and constants in ReferenceUsedNamesOnly. - Add DisallowVariableVariable and EmptyLinesAroundClassBraces sniffs. - Relax multi-line method signature constraints and increase namespace spacing. --- WPTechnix/ruleset.xml | 91 +++++++++++++++++++++++++++++-------------- 1 file changed, 61 insertions(+), 30 deletions(-) diff --git a/WPTechnix/ruleset.xml b/WPTechnix/ruleset.xml index 41b8002..4991b5d 100644 --- a/WPTechnix/ruleset.xml +++ b/WPTechnix/ruleset.xml @@ -8,7 +8,7 @@ - + @@ -104,7 +104,7 @@ - + @@ -230,13 +230,7 @@ - - - - - - - + @@ -310,28 +304,61 @@ + + + + + + + + + + - - - - - - - - + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -350,6 +377,13 @@ + + + + + + + @@ -412,7 +446,6 @@ - @@ -605,16 +638,12 @@ - - - - - + @@ -623,8 +652,8 @@ - - + + @@ -711,6 +740,7 @@ + @@ -725,6 +755,7 @@ + @@ -783,10 +814,10 @@ - - + + - +