0

I would like to get for each file:

  • the number of methods
  • the number of classes
  • the number of functions

And for each function:

  • the cyclomatic complexity
  • the number of lines of that function

I have already developed a script that calculates these metrics for Python, with the help of this library: https://radon.readthedocs.io/en/latest/intro.html#cyclomatic-complexity

But I didn't find anything similar for JavaScript. I tried using the Plato library, https://www.npmjs.com/package/plato, but it doesn't return the number of lines for each function, nor how many functions are present in the file.

0 Answers0