Equivalent of CodeMetrics for PhpStorm / WebStorm, etc...

I use PhpStorm for a lot of typescript development. The one thing I find missing from the IDE is a cyclomatic complexity tool like VSCode's "CodeMetrics" plugin. I see that Rider has one, and that it already works with Typescript. But that plugin won't install for PhpStorm.

Any chance of getting support for that added to PhpStorm?

3 comments
Comment actions Permalink

WebStorm/PHPStorm support a very limited set of metrics (see Settings | Editor | Inspections | JavaScript | JavaScript function metrics). You can try enabling the Overly complex function - see if it works for you

0
Comment actions Permalink

Yeah, not really the same thing. I already run TSLint which will give that functionality (if it goes over a threshhold). But it doesn't annotate the running app, and it doesn't have multiple threshholds (warn, error)

0

Please sign in to leave a comment.