You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPCS can provide statistics about a code base via the --report=info feature.
This information is recorded by sniffs via the File::recordMetric() method.
I believe it could be interesting for code base owners already using PHPCS to have a straight forward way to get insight into the cyclomatic complexity across their codebase.
Describe the solution you'd like
For the sniff to start recording metrics, probably grouped in a few "steps", possibly along the lines of those mentioned in this comment (+ some more for very high complexity).
Is your feature request related to a problem?
PHPCS can provide statistics about a code base via the
--report=info
feature.This information is recorded by sniffs via the
File::recordMetric()
method.I believe it could be interesting for code base owners already using PHPCS to have a straight forward way to get insight into the cyclomatic complexity across their codebase.
Describe the solution you'd like
For the sniff to start recording metrics, probably grouped in a few "steps", possibly along the lines of those mentioned in this comment (+ some more for very high complexity).
Maybe a grouping like this ?
The text was updated successfully, but these errors were encountered: