I am trying to get code metrics from jshint
like on jshint.com:
Metrics
There is only one function in this file.
It takes no arguments.
This function contains 2 statements.
Cyclomatic complexity number for this function is 1.
The cli
execution only shows linting outputs, like missing semicolon
etc., But does not output any of these metrics. However, the above link seems to do that just fine for any pasted code.
How can I get such a code report across all JS files/modules? Technically this information should be available but I'm unable to have any output similar to the above via the CLI. Rummaging through the source code it seems entirely possible but I can't figure out if there's an easier way than hacking at the source code.