Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.2

Request #20509 Add name-based filter for sniffs such as Generic.Metrics.CyclomaticComplexity
Submitted: 2015-03-02 22:10 UTC
From: sebastian Assigned:
Status: Open Package: PHP_CodeSniffer (version 2.2.0)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2015-03-02 22:10 UTC] sebastian (Sebastian Bergmann)
Description: ------------ In a coding standard I want to apply the Generic.Metrics.CyclomaticComplexity and Generic.Metrics.NestingLevel sniffs, for instance, only to specific methods (only public methods where the name starts with a specific prefix, for instance). It would be nice if all sniffs that hook T_METHOD had support for properties such as <property name="methodVisibility" value="public" /> <property name="methodNamePrefix" value="test" />

Comments